#51174E
Closest named color: Grape Purple (#5D1451). oklch(32.2% 0.113 330), rgb(81, 23, 78).
Aa
White text reads best on this color (13.27:1).
About this color
#51174E is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.113 and its hue 330°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Grape Purple (#5D1451), ΔE 0.027 away. White text reads best on it, at 13.27:1.
| Hue family | Purples |
| Lightness | dark (32%) |
| Chroma | moderately saturated (0.113) |
| Temperature | in between |
| Nearest name | Grape Purple (#5D1451) |
| Black text | 1.58:1 |
| White text | 13.27:1 |
Values
| HEX | #51174E |
| RGB | rgb(81, 23, 78) |
| HSL | hsl(303, 56%, 20%) |
| OKLCH | oklch(32.2% 0.113 330) |
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 #51174E | 13.27:1 | AAA | Lc -102.3 | Preferred for body text |
| Black text on #51174E | 1.58:1 | Fails | Lc 0.0 | Not readable |
| #51174E text on white | 13.27:1 | AAA | Lc 99.0 | Preferred for body text |
| #51174E 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
#FDF1FB
oklch(97% 0.018 331.1)
-
Step 100
100
#F9E1F6
oklch(93.5% 0.038 329.9)
-
Step 200
200
#F6C8F1
oklch(88.5% 0.074 329.8)
-
Step 300
300
#F1A0E9
oklch(80.9% 0.133 330.2)
-
Step 400
400
#E665DE
oklch(70.7% 0.212 330)
-
Step 500
500
#DC21D5
oklch(63.2% 0.272 330)
-
Step 600
600
#BD00B7
oklch(55.7% 0.254 330.1)
-
Step 700
700
#9F009B
oklch(49% 0.224 329.7)
-
Step 800
800
#840080
oklch(42.8% 0.195 330)
-
Step 900
900
#6F006B
oklch(37.7% 0.172 330.2)
-
Step 950
950 (this color)
#51174E
oklch(32.2% 0.113 330)
#51174E 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) | #122B50 | 0.118 |
| Deuteranopia (no green cones) | #27324C | 0.101 |
| Tritanopia (no blue cones) | #541E30 | 0.061 |
| Achromatopsia (no color) | #303030 | 0.113 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #51174E
#51174E
oklch(32.2% 0.113 330)
- #003F19
#003F19
oklch(32.1% 0.088 150.3)
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 #51174E, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Grape Purple #5D1451 ΔE 0.027
- Plum Purple #4E0550 ΔE 0.029
- Deep Violet #490648 ΔE 0.035
- Eggplant Purple #430541 ΔE 0.051
- Royal Purple #4B006E ΔE 0.069
- Aubergine #3D0734 ΔE 0.071
- Rich Purple #720058 ΔE 0.074
- Velvet #750851 ΔE 0.078
Use #51174E 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.