#5F1252#5F1252
#5F1252 is a dark, vivid pink. Relative luminance 0.035; OKLCH L 34.4% C 0.131 H 336.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).
Color values
| HEX | #5F1252 |
|---|---|
| RGB | rgb(95, 18, 82) |
| HSL | hsl(310, 68%, 22%) |
| HSV | hsv(310, 81%, 37%) |
| CMYK | cmyk(0%, 81.1%, 13.7%, 62.7%) |
| CIE-LAB | lab(21.85, 40.87, -19.57) |
| CIE-LCH | lch(21.85, 45.31, 334.41°) |
| OKLab | oklab(34.38% 0.1199 -0.0534) |
| OKLCH | oklch(34.38% 0.131 336) |
| XYZ | xyz(6.4587, 3.4753, 8.3117) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Grape Purple
#5D1451
ΔE00 0.51
Rich Purple
#720058
ΔE00 3.89
Plum (survey)
#580F41
ΔE00 4.04
Plum Purple
#4E0550
ΔE00 4.63
Deep Violet
#490648
ΔE00 4.95
Velvet
#750851
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F1252 #125F1F
analogous
#46125F #5F1252 #5F122C
triadic
#5F1252 #525F12 #12525F
tetradic
#5F1252 #5F4612 #125F1F #122C5F
square
#5F1252 #5F4612 #125F1F #122C5F
split-complementary
#5F1252 #2C5F12 #125F46
monochromatic
#1A0516 #2C0826 #5F1252 #921C7E #C625AB
Accessibility & contrast
On white
12.39
#5F1252 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#5F1252 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F1252
12.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F1252 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F1252 | 1.00 | 12.39 | 1.70 | 12.39 |
| #FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#2F3850
Tritanopia (blue-blind)
#641831
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #5f1252; /* rgb */ color: rgb(95, 18, 82); /* oklch */ color: oklch(34.4% 0.131 336.0);
Tailwind
colors: {
custom: {
50: '#8f5a83',
500: '#5f1252',
950: '#000000',
},
}SCSS
$custom: #5f1252; $custom-light: #8f5a83; $custom-dark: #000000;
JSON
{
"hex": "#5f1252",
"rgb": {
"r": 95,
"g": 18,
"b": 82
},
"hsl": {
"h": 310.13,
"s": 68.142,
"l": 22.157
},
"oklch": {
"l": 0.34375,
"c": 0.13124,
"h": 336
},
"luminance": 0.03475
}Semantic roles & 50–950 ramp
primary
#5F1252
secondary
#369746
accent
#EB5A3D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C