#40154C
Closest named color: Deep Violet (#490648). oklch(29.1% 0.104 318.1), rgb(64, 21, 76).
Aa
White text reads best on this color (14.68:1).
About this color
#40154C is a dark, moderately saturated purple. In OKLCH its lightness is 29%, its chroma 0.104 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.029 away. White text reads best on it, at 14.68:1.
| Hue family | Purples |
| Lightness | dark (29%) |
| Chroma | moderately saturated (0.104) |
| Temperature | in between |
| Nearest name | Deep Violet (#490648) |
| Black text | 1.42:1 |
| White text | 14.68:1 |
Values
| HEX | #40154C |
| RGB | rgb(64, 21, 76) |
| HSL | hsl(287, 57%, 19%) |
| OKLCH | oklch(29.1% 0.104 318.1) |
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 #40154C | 14.68:1 | AAA | Lc -104.0 | Preferred for body text |
| Black text on #40154C | 1.42:1 | Fails | Lc 0.0 | Not readable |
| #40154C text on white | 14.68:1 | AAA | Lc 101.0 | Preferred for body text |
| #40154C text on black | 1.42:1 | Fails | Lc 0.0 | Not readable |
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 950.
-
Step 50
50
#FAF2FD
oklch(97% 0.017 316.9)
-
Step 100
100
#F4E3FA
oklch(93.6% 0.036 317.3)
-
Step 200
200
#EDCCF7
oklch(88.6% 0.068 318.3)
-
Step 300
300
#E2A7F4
oklch(80.9% 0.123 318.1)
-
Step 400
400
#D272EE
oklch(70.7% 0.196 318.2)
-
Step 500
500
#C541E8
oklch(63.1% 0.251 318.2)
-
Step 600
600
#B000D5
oklch(55.7% 0.27 318.2)
-
Step 700
700
#9400B4
oklch(49% 0.238 318.1)
-
Step 800
800
#7A0095
oklch(42.6% 0.207 318)
-
Step 900
900
#631378
oklch(37.7% 0.164 317.9)
-
Step 950
950 (this color)
#40154C
oklch(29.1% 0.104 318.1)
#40154C 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) | #03254E | 0.102 |
| Deuteranopia (no green cones) | #172A4B | 0.088 |
| Tritanopia (no blue cones) | #401F2E | 0.066 |
| Achromatopsia (no color) | #282828 | 0.105 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40154C
#40154C
oklch(29.1% 0.104 318.1)
- #103500
#103500
oklch(29% 0.09 138.1)
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 #40154C, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Violet #490648 ΔE 0.029
- Eggplant Purple #430541 ΔE 0.032
- Plum Purple #4E0550 ΔE 0.036
- Dark Purple #35063E ΔE 0.046
- Aubergine #3D0734 ΔE 0.049
- Deep Purple #36013F ΔE 0.050
- Eggplant #380835 ΔE 0.051
- Dark Plum #3F012C ΔE 0.065
Use #40154C 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.