#9040C1#9040C1
#9040C1 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.6% C 0.198 H 309.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #9040C1 |
|---|---|
| RGB | rgb(144, 64, 193) |
| HSL | hsl(277, 51%, 50%) |
| HSV | hsv(277, 67%, 76%) |
| CMYK | cmyk(25.4%, 66.8%, 0%, 24.3%) |
| CIE-LAB | lab(43.43, 55.23, -53.69) |
| CIE-LCH | lch(43.43, 77.03, 315.81°) |
| OKLab | oklab(53.65% 0.1265 -0.1517) |
| OKLCH | oklch(53.65% 0.198 309.8) |
| XYZ | xyz(22.9588, 13.4468, 51.8278) |
| Luminance | 0.1345 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.60
Purply
#983FB2
ΔE00 3.37
Blueviolet
#8A2BE2
ΔE00 5.69
Vibrant Purple
#AD03DE
ΔE00 6.28
Barney
#AC1DB8
ΔE00 6.32
Darkviolet
#9400D3
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9040C1 #71C140
analogous
#4F40C1 #9040C1 #C140B2
triadic
#9040C1 #C19040 #40C190
tetradic
#9040C1 #C14F40 #71C140 #40B2C1
square
#9040C1 #C14F40 #71C140 #40B2C1
split-complementary
#9040C1 #B2C140 #40C14F
monochromatic
#4C2166 #6E3094 #9040C1 #AB6ED0 #C69CDF
Accessibility & contrast
On white
5.69
#9040C1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#9040C1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9040C1
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9040C1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9040C1 | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#2C68BE
Tritanopia (blue-blind)
#895B7B
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9040c1; /* rgb */ color: rgb(144, 64, 193); /* oklch */ color: oklch(53.6% 0.198 309.8);
Tailwind
colors: {
custom: {
50: '#b47ad4',
500: '#9040c1',
950: '#000000',
},
}SCSS
$custom: #9040c1; $custom-light: #b47ad4; $custom-dark: #000000;
JSON
{
"hex": "#9040c1",
"rgb": {
"r": 144,
"g": 64,
"b": 193
},
"hsl": {
"h": 277.209,
"s": 50.988,
"l": 50.392
},
"oklch": {
"l": 0.53648,
"c": 0.19752,
"h": 309.8
},
"luminance": 0.13446
}Semantic roles & 50–950 ramp
primary
#9040C1
secondary
#A7CB92
accent
#DA4D83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83