#40124E
Closest named color: Deep Violet (#490648). oklch(28.9% 0.11 317.2), rgb(64, 18, 78).
Aa
White text reads best on this color (14.84:1).
About this color
#40124E is a dark, moderately saturated purple. In OKLCH its lightness is 29%, its chroma 0.110 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.027 away. White text reads best on it, at 14.84:1.
| Hue family | Purples |
| Lightness | dark (29%) |
| Chroma | moderately saturated (0.110) |
| Temperature | in between |
| Nearest name | Deep Violet (#490648) |
| Black text | 1.41:1 |
| White text | 14.84:1 |
Values
| HEX | #40124E |
| RGB | rgb(64, 18, 78) |
| HSL | hsl(286, 63%, 19%) |
| OKLCH | oklch(28.9% 0.11 317.2) |
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 #40124E | 14.84:1 | AAA | Lc -104.1 | Preferred for body text |
| Black text on #40124E | 1.41:1 | Fails | Lc 0.0 | Not readable |
| #40124E text on white | 14.84:1 | AAA | Lc 101.1 | Preferred for body text |
| #40124E text on black | 1.41: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
#F5E3FB
oklch(93.7% 0.037 317.7)
-
Step 200
200
#EDCBF9
oklch(88.5% 0.072 317.2)
-
Step 300
300
#E3A5F8
oklch(80.9% 0.131 317.3)
-
Step 400
400
#D36EF4
oklch(70.6% 0.209 317.2)
-
Step 500
500
#C737F0
oklch(63.1% 0.268 317.3)
-
Step 600
600
#AE00D7
oklch(55.5% 0.27 317.1)
-
Step 700
700
#9300B6
oklch(49% 0.239 317.1)
-
Step 800
800
#7A0097
oklch(42.8% 0.208 317.3)
-
Step 900
900
#640B7C
oklch(37.7% 0.174 317.1)
-
Step 950
950 (this color)
#40124E
oklch(28.9% 0.11 317.2)
#40124E 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) | #002550 | 0.106 |
| Deuteranopia (no green cones) | #13294D | 0.094 |
| Tritanopia (no blue cones) | #3F1E2E | 0.071 |
| Achromatopsia (no color) | #272727 | 0.112 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #40124E
#40124E
oklch(28.9% 0.11 317.2)
- #123400
#123400
oklch(28.8% 0.088 137.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 #40124E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Violet #490648 ΔE 0.027
- Eggplant Purple #430541 ΔE 0.030
- Plum Purple #4E0550 ΔE 0.034
- Dark Purple #35063E ΔE 0.045
- Deep Purple #36013F ΔE 0.047
- Aubergine #3D0734 ΔE 0.050
- Eggplant #380835 ΔE 0.052
- Royal Purple #4B006E ΔE 0.062
Use #40124E 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.