#51335E
Closest named color: Grape Purple (#5D1451). oklch(37.6% 0.08 315.1), rgb(81, 51, 94).
Aa
White text reads best on this color (10.57:1).
About this color
#51335E is a dark, moderately saturated purple. In OKLCH its lightness is 38%, its chroma 0.080 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.068 away. White text reads best on it, at 10.57:1.
| Hue family | Purples |
| Lightness | dark (38%) |
| Chroma | moderately saturated (0.080) |
| Temperature | in between |
| Nearest name | Grape Purple (#5D1451) |
| Black text | 1.98:1 |
| White text | 10.57:1 |
Values
| HEX | #51335E |
| RGB | rgb(81, 51, 94) |
| HSL | hsl(282, 30%, 28%) |
| OKLCH | oklch(37.6% 0.08 315.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 #51335E | 10.57:1 | AAA | Lc -98.4 | Preferred for body text |
| Black text on #51335E | 1.98:1 | Fails | Lc 9.5 | Not readable |
| #51335E text on white | 10.57:1 | AAA | Lc 94.4 | Preferred for body text |
| #51335E text on black | 1.98:1 | Fails | Lc -8.2 | 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 900.
-
Step 50
50
#F7F4F9
oklch(97.1% 0.007 312.3)
-
Step 100
100
#EEE7F2
oklch(93.7% 0.016 313.6)
-
Step 200
200
#E2D3E9
oklch(88.6% 0.034 315.2)
-
Step 300
300
#D0B5DC
oklch(80.9% 0.061 315.5)
-
Step 400
400
#B78ECA
oklch(70.6% 0.097 314.8)
-
Step 500
500
#A571BC
oklch(63% 0.123 315)
-
Step 600
600
#9058A8
oklch(55.5% 0.133 315)
-
Step 700
700
#7B4890
oklch(49.1% 0.124 315.3)
-
Step 800
800
#643B75
oklch(42.6% 0.103 315.3)
-
Step 900
900 (this color)
#51335E
oklch(37.6% 0.08 315.1)
-
Step 950
950
#301E37
oklch(26.9% 0.051 316.1)
#51335E 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) | #2B3D60 | 0.067 |
| Deuteranopia (no green cones) | #33405D | 0.061 |
| Tritanopia (no blue cones) | #503944 | 0.053 |
| Achromatopsia (no color) | #3F3F3F | 0.080 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #51335E
#51335E
oklch(37.6% 0.08 315.1)
- #2E4A1C
#2E4A1C
oklch(37.5% 0.079 134.8)
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 #51335E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Grape Purple #5D1451 ΔE 0.068
- Purple Brown #673A3F ΔE 0.077
- Dark Slate Blue #483D8B ΔE 0.078
- Onyx #343A40 ΔE 0.081
- Dark Grey Blue #29465B ΔE 0.082
- Charcoal Grey #3C4142 ΔE 0.082
- Prussian Blue #1D3557 ΔE 0.087
- Space Cadet #2B2D42 ΔE 0.089
Use #51335E 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.