#9F5FDA#9F5FDA
#9F5FDA is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.1% C 0.185 H 305.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #9F5FDA |
|---|---|
| RGB | rgb(159, 95, 218) |
| HSL | hsl(271, 62%, 61%) |
| HSV | hsv(271, 56%, 85%) |
| CMYK | cmyk(27.1%, 56.4%, 0%, 14.5%) |
| CIE-LAB | lab(52.53, 48.95, -53.35) |
| CIE-LCH | lch(52.53, 72.41, 312.54°) |
| OKLab | oklab(61.15% 0.1078 -0.1504) |
| OKLCH | oklch(61.15% 0.185 305.6) |
| XYZ | xyz(31.0425, 20.6175, 68.6603) |
| Luminance | 0.2062 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.16
Lighter Purple
#A55AF4
ΔE00 3.77
Amethyst
#9B5FC0
ΔE00 4.37
Mediumpurple
#9370DB
ΔE00 5.23
Mediumorchid
#BA55D3
ΔE00 5.72
Purpley
#8756E4
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F5FDA #9ADA5F
analogous
#625FDA #9F5FDA #DA5FD7
triadic
#9F5FDA #DA9F5F #5FDA9F
tetradic
#9F5FDA #DA625F #9ADA5F #5FD7DA
square
#9F5FDA #DA625F #9ADA5F #5FD7DA
split-complementary
#9F5FDA #D7DA5F #5FDA62
monochromatic
#62249B #812FCD #9F5FDA #BD91E5 #DBC2F1
Accessibility & contrast
On white
4.10
#9F5FDA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.12
#9F5FDA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F5FDA
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F5FDA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F5FDA | 1.00 | 4.10 | 5.12 | 5.12 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#307BDE
Deuteranopia (green-blind)
#497ED7
Tritanopia (blue-blind)
#957793
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #9f5fda; /* rgb */ color: rgb(159, 95, 218); /* oklch */ color: oklch(61.1% 0.185 305.6);
Tailwind
colors: {
custom: {
50: '#bf8fe6',
500: '#9f5fda',
950: '#000000',
},
}SCSS
$custom: #9f5fda; $custom-light: #bf8fe6; $custom-dark: #000000;
JSON
{
"hex": "#9f5fda",
"rgb": {
"r": 159,
"g": 95,
"b": 218
},
"hsl": {
"h": 271.22,
"s": 62.437,
"l": 61.373
},
"oklch": {
"l": 0.61149,
"c": 0.18506,
"h": 305.6
},
"luminance": 0.20617
}Semantic roles & 50–950 ramp
primary
#9F5FDA
secondary
#C9E1B3
accent
#CA1B6F
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120D16
muted
#817D84