#FF40DF
Closest named color: Bright Magenta (#FF08E8). oklch(70.7% 0.271 336), rgb(255, 64, 223).
Aa
Black text reads best on this color (7.05:1).
About this color
#FF40DF is a medium-light, vivid pink. In OKLCH its lightness is 71%, its chroma 0.271 and its hue 336°. Its hue sits on the warm side of the wheel. The nearest named color is Bright Magenta (#FF08E8), ΔE 0.042 away. Black text reads best on it, at 7.05:1.
| Hue family | Pinks |
| Lightness | medium-light (71%) |
| Chroma | vivid (0.271) |
| Temperature | warm |
| Nearest name | Bright Magenta (#FF08E8) |
| Black text | 7.05:1 |
| White text | 2.97:1 |
Values
| HEX | #FF40DF |
| RGB | rgb(255, 64, 223) |
| HSL | hsl(310, 100%, 63%) |
| OKLCH | oklch(70.7% 0.271 336) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #FF40DF | 2.97:1 | Fails | Lc -60.2 | Content text, not long reading |
| Black text on #FF40DF | 7.05:1 | AAA | Lc 49.1 | Large or bold text, headings |
| #FF40DF text on white | 2.97:1 | Fails | Lc 54.9 | Large or bold text, headings |
| #FF40DF text on black | 7.05:1 | AAA | Lc -46.9 | Large or bold text, headings |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 400.
-
Step 50
50
#FFF1FB
oklch(97.2% 0.02 335.7)
-
Step 100
100
#FFDFF6
oklch(93.7% 0.046 336)
-
Step 200
200
#FFC4EF
oklch(88.6% 0.087 336.3)
-
Step 300
300
#FF97E7
oklch(80.9% 0.157 336)
-
Step 400
400 (this color)
#FF40DF
oklch(70.7% 0.271 336)
-
Step 500
500
#E600C7
oklch(63.2% 0.279 336.1)
-
Step 600
600
#C200A8
oklch(55.6% 0.246 336)
-
Step 700
700
#A4008E
oklch(49.1% 0.217 335.9)
-
Step 800
800
#870075
oklch(42.6% 0.189 335.7)
-
Step 900
900
#720062
oklch(37.7% 0.167 336)
-
Step 950
950
#46003C
oklch(27% 0.12 335.6)
#FF40DF with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #4283E3 | 0.299 |
| Deuteranopia (no green cones) | #87A0DB | 0.254 |
| Tritanopia (no blue cones) | #FF4F8D | 0.129 |
| Achromatopsia (no color) | #959595 | 0.274 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #FF40DF
#FF40DF
oklch(70.7% 0.271 336)
- #00BF71
#00BF71
oklch(70.7% 0.172 155.9)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #FF40DF, closest first.
No curated palette has a color within ΔE 0.04 of #FF40DF.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Bright Magenta #FF08E8 ΔE 0.042
- Candy Pink #FF63E9 ΔE 0.050
- Light Magenta #FA5FF7 ΔE 0.050
- Pink Purple #EF1DE7 ΔE 0.052
- Hot Magenta #F504C9 ΔE 0.054
- Violet Pink #FB5FFC ΔE 0.055
- Magenta #FF00FF ΔE 0.065
- Bright Pink #FE01B1 ΔE 0.072
Use #FF40DF in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.