#402150
Closest named color: Deep Violet (#490648). oklch(31.2% 0.088 312.9), rgb(64, 33, 80).
Aa
White text reads best on this color (13.53:1).
About this color
#402150 is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.088 and its hue 313°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.052 away. White text reads best on it, at 13.53:1.
| Hue family | Purples |
| Lightness | dark (31%) |
| Chroma | moderately saturated (0.088) |
| Temperature | in between |
| Nearest name | Deep Violet (#490648) |
| Black text | 1.55:1 |
| White text | 13.53:1 |
Values
| HEX | #402150 |
| RGB | rgb(64, 33, 80) |
| HSL | hsl(280, 42%, 22%) |
| OKLCH | oklch(31.2% 0.088 312.9) |
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 #402150 | 13.53:1 | AAA | Lc -102.9 | Preferred for body text |
| Black text on #402150 | 1.55:1 | Fails | Lc 0.0 | Not readable |
| #402150 text on white | 13.53:1 | AAA | Lc 99.8 | Preferred for body text |
| #402150 text on black | 1.55: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
#F9F3FC
oklch(97.1% 0.013 314.8)
-
Step 100
100
#F1E4F9
oklch(93.5% 0.031 312.9)
-
Step 200
200
#E7CFF5
oklch(88.6% 0.057 313.1)
-
Step 300
300
#D8ADF1
oklch(80.9% 0.104 312.8)
-
Step 400
400
#C47EE9
oklch(70.7% 0.166 313)
-
Step 500
500
#B557E3
oklch(63.1% 0.213 312.9)
-
Step 600
600
#A034D0
oklch(55.5% 0.231 312.9)
-
Step 700
700
#8924B4
oklch(49% 0.215 312.9)
-
Step 800
800
#6F2292
oklch(42.7% 0.177 312.6)
-
Step 900
900
#5A2374
oklch(37.6% 0.138 312.9)
-
Step 950
950 (this color)
#402150
oklch(31.2% 0.088 312.9)
#402150 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) | #152D52 | 0.076 |
| Deuteranopia (no green cones) | #1F2F4F | 0.067 |
| Tritanopia (no blue cones) | #3E2935 | 0.060 |
| Achromatopsia (no color) | #2E2E2E | 0.088 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402150
#402150
oklch(31.2% 0.088 312.9)
- #1E3A00
#1E3A00
oklch(31.4% 0.089 133)
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 #402150, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Deep Violet #490648 ΔE 0.052
- Plum Purple #4E0550 ΔE 0.054
- Eggplant Purple #430541 ΔE 0.057
- Space Cadet #2B2D42 ΔE 0.060
- Grape Purple #5D1451 ΔE 0.064
- Aubergine #3D0734 ΔE 0.070
- Dark Purple #35063E ΔE 0.071
- Eggplant #380835 ΔE 0.073
Use #402150 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.