#5F40AE
Closest named color: Bluey Purple (#6241C7). oklch(46.8% 0.167 291.6), rgb(95, 64, 174).
Aa
White text reads best on this color (7.41:1).
About this color
#5F40AE is a medium-dark, vivid purple. In OKLCH its lightness is 47%, its chroma 0.167 and its hue 292°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Bluey Purple (#6241C7), ΔE 0.040 away. White text reads best on it, at 7.41:1.
| Hue family | Purples |
| Lightness | medium-dark (47%) |
| Chroma | vivid (0.167) |
| Temperature | in between |
| Nearest name | Bluey Purple (#6241C7) |
| Black text | 2.83:1 |
| White text | 7.41:1 |
Values
| HEX | #5F40AE |
| RGB | rgb(95, 64, 174) |
| HSL | hsl(257, 46%, 47%) |
| OKLCH | oklch(46.8% 0.167 291.6) |
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 #5F40AE | 7.41:1 | AAA | Lc -90.2 | Preferred for body text |
| Black text on #5F40AE | 2.83:1 | Fails | Lc 18.7 | Dividers and decoration only |
| #5F40AE text on white | 7.41:1 | AAA | Lc 85.3 | Fine for body text |
| #5F40AE text on black | 2.83:1 | Fails | Lc -16.7 | Dividers and decoration only |
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 700.
-
Step 50
50
#F5F4FC
oklch(97% 0.011 292)
-
Step 100
100
#EAE7F9
oklch(93.6% 0.024 293.6)
-
Step 200
200
#D9D4F5
oklch(88.4% 0.045 292.4)
-
Step 300
300
#C1B8F1
oklch(81% 0.08 291.7)
-
Step 400
400
#A291EA
oklch(70.7% 0.128 291.5)
-
Step 500
500
#8D73E4
oklch(63.2% 0.165 291.6)
-
Step 600
600
#7858D2
oklch(55.6% 0.18 291.5)
-
Step 700
700 (this color)
#5F40AE
oklch(46.8% 0.167 291.6)
-
Step 800
800
#523B93
oklch(42.6% 0.139 291.4)
-
Step 900
900
#443475
oklch(37.8% 0.107 291.8)
-
Step 950
950
#271F45
oklch(27% 0.069 290.8)
#5F40AE 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) | #0057B1 | 0.100 |
| Deuteranopia (no green cones) | #0053AC | 0.099 |
| Tritanopia (no blue cones) | #485A71 | 0.135 |
| Achromatopsia (no color) | #555555 | 0.168 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5F40AE
#5F40AE
oklch(46.8% 0.167 291.6)
- #5D5F00
#5D5F00
oklch(46.8% 0.103 111.2)
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 #5F40AE, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Bluey Purple #6241C7 ΔE 0.040
- Rebecca Purple #663399 ΔE 0.044
- Blue With A Hint Of Purple #533CC6 ΔE 0.045
- Blurple #5539CC ΔE 0.053
- Blueberry #464196 ΔE 0.057
- Iris #6258C4 ΔE 0.064
- Dark Slate Blue #483D8B ΔE 0.069
- Purple Blue #5D21D0 ΔE 0.072
Use #5F40AE 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.