#9F5CDC#9F5CDC
#9F5CDC is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.8% C 0.192 H 305.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #9F5CDC |
|---|---|
| RGB | rgb(159, 92, 220) |
| HSL | hsl(271, 65%, 61%) |
| HSV | hsv(271, 58%, 86%) |
| CMYK | cmyk(27.7%, 58.2%, 0%, 13.7%) |
| CIE-LAB | lab(52.05, 50.99, -55.24) |
| CIE-LCH | lch(52.05, 75.18, 312.70°) |
| OKLab | oklab(60.84% 0.1116 -0.1559) |
| OKLCH | oklch(60.84% 0.192 305.6) |
| XYZ | xyz(31.0407, 20.1928, 69.9586) |
| Luminance | 0.2019 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.44
Lighter Purple
#A55AF4
ΔE00 3.43
Amethyst
#9B5FC0
ΔE00 4.70
Purpley
#8756E4
ΔE00 5.29
Mediumorchid
#BA55D3
ΔE00 5.76
Mediumpurple
#9370DB
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F5CDC #99DC5C
analogous
#5F5CDC #9F5CDC #DC5CD9
triadic
#9F5CDC #DC9F5C #5CDC9F
tetradic
#9F5CDC #DC5F5C #99DC5C #5CD9DC
square
#9F5CDC #DC5F5C #99DC5C #5CD9DC
split-complementary
#9F5CDC #D9DC5C #5CDC5F
monochromatic
#62229C #812CCE #9F5CDC #BD8EE7 #DAC1F2
Accessibility & contrast
On white
4.17
#9F5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#9F5CDC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F5CDC
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F5CDC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F5CDC | 1.00 | 4.17 | 5.04 | 5.04 |
| #FFFFFF | 4.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#257AE0
Deuteranopia (green-blind)
#437CD9
Tritanopia (blue-blind)
#957593
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #9f5cdc; /* rgb */ color: rgb(159, 92, 220); /* oklch */ color: oklch(60.8% 0.192 305.6);
Tailwind
colors: {
custom: {
50: '#bf8de7',
500: '#9f5cdc',
950: '#000000',
},
}SCSS
$custom: #9f5cdc; $custom-light: #bf8de7; $custom-dark: #000000;
JSON
{
"hex": "#9f5cdc",
"rgb": {
"r": 159,
"g": 92,
"b": 220
},
"hsl": {
"h": 271.406,
"s": 64.646,
"l": 61.176
},
"oklch": {
"l": 0.6084,
"c": 0.19175,
"h": 305.6
},
"luminance": 0.20193
}Semantic roles & 50–950 ramp
primary
#9F5CDC
secondary
#C9E2B2
accent
#CC196F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84