#9F5CE3#9F5CE3
#9F5CE3 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.3% C 0.200 H 304.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #9F5CE3 |
|---|---|
| RGB | rgb(159, 92, 227) |
| HSL | hsl(270, 71%, 63%) |
| HSV | hsv(270, 59%, 89%) |
| CMYK | cmyk(30%, 59.5%, 0%, 11%) |
| CIE-LAB | lab(52.48, 52.63, -58.52) |
| CIE-LCH | lch(52.48, 78.71, 311.97°) |
| OKLab | oklab(61.28% 0.1115 -0.1656) |
| OKLCH | oklch(61.28% 0.2 304) |
| XYZ | xyz(31.9872, 20.5714, 74.9437) |
| Luminance | 0.2057 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.21
Lighter Purple
#A55AF4
ΔE00 2.44
Purpley
#8756E4
ΔE00 4.98
Mediumpurple
#9370DB
ΔE00 5.72
Amethyst
#9B5FC0
ΔE00 5.75
Mediumorchid
#BA55D3
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F5CE3 #A0E35C
analogous
#5C5CE3 #9F5CE3 #E35CE3
triadic
#9F5CE3 #E39F5C #5CE39F
tetradic
#9F5CE3 #E35C5C #A0E35C #5CE3E3
square
#9F5CE3 #E35C5C #A0E35C #5CE3E3
split-complementary
#9F5CE3 #E3E35C #5CE35C
monochromatic
#621DA8 #8028DA #9F5CE3 #BE90EC #DDC4F5
Accessibility & contrast
On white
4.11
#9F5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#9F5CE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F5CE3
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F5CE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F5CE3 | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#167CE7
Deuteranopia (green-blind)
#3B7DE0
Tritanopia (blue-blind)
#937797
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9f5ce3; /* rgb */ color: rgb(159, 92, 227); /* oklch */ color: oklch(61.3% 0.200 304.0);
Tailwind
colors: {
custom: {
50: '#bf8dec',
500: '#9f5ce3',
950: '#000000',
},
}SCSS
$custom: #9f5ce3; $custom-light: #bf8dec; $custom-dark: #000000;
JSON
{
"hex": "#9f5ce3",
"rgb": {
"r": 159,
"g": 92,
"b": 227
},
"hsl": {
"h": 269.778,
"s": 70.681,
"l": 62.549
},
"oklch": {
"l": 0.61284,
"c": 0.19961,
"h": 304
},
"luminance": 0.20571
}Semantic roles & 50–950 ramp
primary
#9F5CE3
secondary
#CEE6B5
accent
#D31373
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84