#402256
Closest named color: Plum Purple (#4E0550). oklch(31.8% 0.094 308.6), rgb(64, 34, 86).
Aa
White text reads best on this color (13.28:1).
About this color
#402256 is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.094 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Plum Purple (#4E0550), ΔE 0.055 away. White text reads best on it, at 13.28:1.
| Hue family | Purples |
| Lightness | dark (32%) |
| Chroma | moderately saturated (0.094) |
| Temperature | in between |
| Nearest name | Plum Purple (#4E0550) |
| Black text | 1.58:1 |
| White text | 13.28:1 |
Values
| HEX | #402256 |
| RGB | rgb(64, 34, 86) |
| HSL | hsl(275, 43%, 24%) |
| OKLCH | oklch(31.8% 0.094 308.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 #402256 | 13.28:1 | AAA | Lc -102.6 | Preferred for body text |
| Black text on #402256 | 1.58:1 | Fails | Lc 0.0 | Not readable |
| #402256 text on white | 13.28:1 | AAA | Lc 99.4 | Preferred for body text |
| #402256 text on black | 1.58: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
#F8F3FD
oklch(97.1% 0.014 308.3)
-
Step 100
100
#F0E5FB
oklch(93.7% 0.032 308.1)
-
Step 200
200
#E5CFF9
oklch(88.6% 0.061 308.7)
-
Step 300
300
#D5ADF8
oklch(80.9% 0.111 308.4)
-
Step 400
400
#C07DF4
oklch(70.6% 0.178 308.5)
-
Step 500
500
#B155EF
oklch(63.2% 0.227 308.8)
-
Step 600
600
#9D2FDD
oklch(55.6% 0.246 308.9)
-
Step 700
700
#861EC0
oklch(49.1% 0.229 308.7)
-
Step 800
800
#6D1D9B
oklch(42.7% 0.19 309)
-
Step 900
900
#58217C
oklch(37.7% 0.149 308.5)
-
Step 950
950 (this color)
#402256
oklch(31.8% 0.094 308.6)
#402256 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) | #112E58 | 0.078 |
| Deuteranopia (no green cones) | #1C3055 | 0.069 |
| Tritanopia (no blue cones) | #3D2B38 | 0.066 |
| Achromatopsia (no color) | #303030 | 0.094 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #402256
#402256
oklch(31.8% 0.094 308.6)
- #253A00
#253A00
oklch(31.8% 0.084 128.7)
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 #402256, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Plum Purple #4E0550 ΔE 0.055
- Deep Violet #490648 ΔE 0.056
- Eggplant Purple #430541 ΔE 0.064
- Space Cadet #2B2D42 ΔE 0.065
- Grape Purple #5D1451 ΔE 0.065
- Royal Purple #4B006E ΔE 0.068
- Prussian Blue #1D3557 ΔE 0.074
- Dark Purple #35063E ΔE 0.077
Use #402256 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.