#9540C2#9540C2
#9540C2 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.3% C 0.200 H 311.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #9540C2 |
|---|---|
| RGB | rgb(149, 64, 194) |
| HSL | hsl(279, 52%, 51%) |
| HSV | hsv(279, 67%, 76%) |
| CMYK | cmyk(23.2%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(44.16, 56.54, -53.06) |
| CIE-LCH | lch(44.16, 77.54, 316.82°) |
| OKLab | oklab(54.34% 0.1328 -0.1497) |
| OKLCH | oklch(54.34% 0.2 311.6) |
| XYZ | xyz(23.9636, 13.9520, 52.4591) |
| Luminance | 0.1395 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.46
Purply
#983FB2
ΔE00 2.95
Barney
#AC1DB8
ΔE00 5.75
Vibrant Purple
#AD03DE
ΔE00 5.85
Blueviolet
#8A2BE2
ΔE00 6.09
Darkviolet
#9400D3
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9540C2 #6DC240
analogous
#5440C2 #9540C2 #C240AE
triadic
#9540C2 #C29540 #40C295
tetradic
#9540C2 #C25440 #6DC240 #40AEC2
square
#9540C2 #C25440 #6DC240 #40AEC2
split-complementary
#9540C2 #AEC240 #40C254
monochromatic
#4F2167 #723095 #9540C2 #AF6ED1 #C89DE0
Accessibility & contrast
On white
5.54
#9540C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#9540C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9540C2
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9540C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9540C2 | 1.00 | 5.54 | 3.79 | 5.54 |
| #FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#326ABF
Tritanopia (blue-blind)
#905B7C
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #9540c2; /* rgb */ color: rgb(149, 64, 194); /* oklch */ color: oklch(54.3% 0.200 311.6);
Tailwind
colors: {
custom: {
50: '#b87bd5',
500: '#9540c2',
950: '#000000',
},
}SCSS
$custom: #9540c2; $custom-light: #b87bd5; $custom-dark: #000000;
JSON
{
"hex": "#9540c2",
"rgb": {
"r": 149,
"g": 64,
"b": 194
},
"hsl": {
"h": 279.231,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.54339,
"c": 0.20014,
"h": 311.6
},
"luminance": 0.13951
}Semantic roles & 50–950 ramp
primary
#9540C2
secondary
#A6CC92
accent
#DB4D7E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83