#5F279C#5F279C
#5F279C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.178 H 300.6°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #5F279C |
|---|---|
| RGB | rgb(95, 39, 156) |
| HSL | hsl(269, 60%, 38%) |
| HSV | hsv(269, 75%, 61%) |
| CMYK | cmyk(39.1%, 75%, 0%, 38.8%) |
| CIE-LAB | lab(30.12, 48.11, -53.54) |
| CIE-LCH | lch(30.12, 71.98, 311.95°) |
| OKLab | oklab(41.92% 0.0904 -0.1528) |
| OKLCH | oklch(41.92% 0.178 300.6) |
| XYZ | xyz(11.4441, 6.2841, 32.0561) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.02
Purple (survey)
#7E1E9C
ΔE00 5.95
Indigo Blue
#3A18B1
ΔE00 6.86
Violet Blue
#510AC9
ΔE00 7.11
Indigo
#4B0082
ΔE00 7.23
Purple Blue
#5D21D0
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F279C #649C27
analogous
#27299C #5F279C #99279C
triadic
#5F279C #9C5F27 #279C5F
tetradic
#5F279C #9C2729 #649C27 #279C99
square
#5F279C #9C2729 #649C27 #279C99
split-complementary
#5F279C #9C9927 #299C27
monochromatic
#230F3A #411B6B #5F279C #7D34CC #9C65D8
Accessibility & contrast
On white
9.31
#5F279C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#5F279C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F279C
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F279C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F279C | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#51455F
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #5f279c; /* rgb */ color: rgb(95, 39, 156); /* oklch */ color: oklch(41.9% 0.178 300.6);
Tailwind
colors: {
custom: {
50: '#9267ba',
500: '#5f279c',
950: '#000000',
},
}SCSS
$custom: #5f279c; $custom-light: #9267ba; $custom-dark: #000000;
JSON
{
"hex": "#5f279c",
"rgb": {
"r": 95,
"g": 39,
"b": 156
},
"hsl": {
"h": 268.718,
"s": 60,
"l": 38.235
},
"oklch": {
"l": 0.41917,
"c": 0.17755,
"h": 300.6
},
"luminance": 0.06284
}Semantic roles & 50–950 ramp
primary
#5F279C
secondary
#91BE61
accent
#E34597
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81