#5F40C3
Closest named color: Bluey Purple (#6241C7). oklch(48.5% 0.193 287.8), rgb(95, 64, 195).
Aa
White text reads best on this color (6.98:1).
About this color
#5F40C3 is a medium-dark, vivid purple. In OKLCH its lightness is 48%, its chroma 0.193 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Bluey Purple (#6241C7), ΔE 0.008 away. White text reads best on it, at 6.98:1.
| Hue family | Purples |
| Lightness | medium-dark (48%) |
| Chroma | vivid (0.193) |
| Temperature | cool |
| Nearest name | Bluey Purple (#6241C7) |
| Black text | 3.00:1 |
| White text | 6.98:1 |
Values
| HEX | #5F40C3 |
| RGB | rgb(95, 64, 195) |
| HSL | hsl(254, 52%, 51%) |
| OKLCH | oklch(48.5% 0.193 287.8) |
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 #5F40C3 | 6.98:1 | AA | Lc -88.6 | Fine for body text |
| Black text on #5F40C3 | 3.00:1 | AA large text | Lc 20.5 | Dividers and decoration only |
| #5F40C3 text on white | 6.98:1 | AA | Lc 83.6 | Fine for body text |
| #5F40C3 text on black | 3.00:1 | AA large text | Lc -18.4 | 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
#F5F4FE
oklch(97.1% 0.013 290.8)
-
Step 100
100
#E8E7FC
oklch(93.5% 0.028 288)
-
Step 200
200
#D7D4FA
oklch(88.4% 0.052 288.9)
-
Step 300
300
#BDB7FA
oklch(80.8% 0.094 288.2)
-
Step 400
400
#9D8FF8
oklch(70.7% 0.15 288)
-
Step 500
500
#876FF4
oklch(63% 0.191 287.9)
-
Step 600
600
#7353E3
oklch(55.6% 0.208 287.9)
-
Step 700
700 (this color)
#5F40C3
oklch(48.5% 0.193 287.8)
-
Step 800
800
#4F389F
oklch(42.8% 0.159 288)
-
Step 900
900
#41327F
oklch(37.8% 0.125 287.9)
-
Step 950
950
#251E4A
oklch(27% 0.079 287.2)
#5F40C3 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) | #005CC7 | 0.098 |
| Deuteranopia (no green cones) | #0056C0 | 0.096 |
| Tritanopia (no blue cones) | #3A617C | 0.158 |
| Achromatopsia (no color) | #595959 | 0.194 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5F40C3
#5F40C3
oklch(48.5% 0.193 287.8)
- #656200
#656200
oklch(48.3% 0.104 107.6)
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 #5F40C3, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Bluey Purple #6241C7 ΔE 0.008
- Blue With A Hint Of Purple #533CC6 ΔE 0.024
- Blurple #5539CC ΔE 0.027
- Purple Blue #5D21D0 ΔE 0.051
- Iris #6258C4 ΔE 0.054
- Burple #6832E3 ΔE 0.054
- Purpley Blue #5F34E7 ΔE 0.058
- Majorelle Blue #3F37C9 ΔE 0.058
Use #5F40C3 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.