#9F51CA#9F51CA
#9F51CA is a mid, vivid violet. Relative luminance 0.175; OKLCH L 58.2% C 0.188 H 311.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #9F51CA |
|---|---|
| RGB | rgb(159, 81, 202) |
| HSL | hsl(279, 53%, 55%) |
| HSV | hsv(279, 60%, 79%) |
| CMYK | cmyk(21.3%, 59.9%, 0%, 20.8%) |
| CIE-LAB | lab(48.91, 52.51, -50.01) |
| CIE-LCH | lch(48.91, 72.51, 316.40°) |
| OKLab | oklab(58.21% 0.1252 -0.1405) |
| OKLCH | oklch(58.21% 0.188 311.7) |
| XYZ | xyz(27.8992, 17.5207, 57.7778) |
| Luminance | 0.1752 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.84
Lightish Purple
#A552E6
ΔE00 4.34
Deep Lavender
#8D5EB7
ΔE00 5.20
Mediumorchid
#BA55D3
ΔE00 5.63
Purply
#983FB2
ΔE00 5.88
Darkorchid
#9932CC
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F51CA #7CCA51
analogous
#6251CA #9F51CA #CA51B8
triadic
#9F51CA #CA9F51 #51CA9F
tetradic
#9F51CA #CA6251 #7CCA51 #51B8CA
square
#9F51CA #CA6251 #7CCA51 #51B8CA
split-complementary
#9F51CA #B8CA51 #51CA62
monochromatic
#5D257B #8034AA #9F51CA #B980D8 #D3AFE7
Accessibility & contrast
On white
4.66
#9F51CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.50
#9F51CA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #9F51CA
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F51CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F51CA | 1.00 | 4.66 | 4.50 | 4.66 |
| #FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2570CE
Deuteranopia (green-blind)
#4776C7
Tritanopia (blue-blind)
#9A6786
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #9f51ca; /* rgb */ color: rgb(159, 81, 202); /* oklch */ color: oklch(58.2% 0.188 311.7);
Tailwind
colors: {
custom: {
50: '#be86db',
500: '#9f51ca',
950: '#000000',
},
}SCSS
$custom: #9f51ca; $custom-light: #be86db; $custom-dark: #000000;
JSON
{
"hex": "#9f51ca",
"rgb": {
"r": 159,
"g": 81,
"b": 202
},
"hsl": {
"h": 278.678,
"s": 53.304,
"l": 55.49
},
"oklch": {
"l": 0.58205,
"c": 0.18821,
"h": 311.7
},
"luminance": 0.1752
}Semantic roles & 50–950 ramp
primary
#9F51CA
secondary
#B4D5A2
accent
#DD4B7F
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120B15
muted
#817C83