#9040C2#9040C2
#9040C2 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.7% C 0.199 H 309.5°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).
Color values
| HEX | #9040C2 |
|---|---|
| RGB | rgb(144, 64, 194) |
| HSL | hsl(277, 52%, 51%) |
| HSV | hsv(277, 67%, 76%) |
| CMYK | cmyk(25.8%, 67%, 0%, 23.9%) |
| CIE-LAB | lab(43.49, 55.45, -54.17) |
| CIE-LCH | lch(43.49, 77.52, 315.67°) |
| OKLab | oklab(53.72% 0.1264 -0.1531) |
| OKLCH | oklch(53.72% 0.199 309.5) |
| XYZ | xyz(23.0707, 13.4916, 52.4173) |
| Luminance | 0.1349 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.54
Purply
#983FB2
ΔE00 3.52
Blueviolet
#8A2BE2
ΔE00 5.56
Vibrant Purple
#AD03DE
ΔE00 6.22
Darkviolet
#9400D3
ΔE00 6.30
Barney
#AC1DB8
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9040C2 #72C240
analogous
#4F40C2 #9040C2 #C240B3
triadic
#9040C2 #C29040 #40C290
tetradic
#9040C2 #C24F40 #72C240 #40B3C2
square
#9040C2 #C24F40 #72C240 #40B3C2
split-complementary
#9040C2 #B3C240 #40C24F
monochromatic
#4C2167 #6E3095 #9040C2 #AB6ED1 #C69DE0
Accessibility & contrast
On white
5.68
#9040C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.70
#9040C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9040C2
5.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9040C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9040C2 | 1.00 | 5.68 | 3.70 | 5.68 |
| #FFFFFF | 5.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#895B7C
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9040c2; /* rgb */ color: rgb(144, 64, 194); /* oklch */ color: oklch(53.7% 0.199 309.5);
Tailwind
colors: {
custom: {
50: '#b57ad5',
500: '#9040c2',
950: '#000000',
},
}SCSS
$custom: #9040c2; $custom-light: #b57ad5; $custom-dark: #000000;
JSON
{
"hex": "#9040c2",
"rgb": {
"r": 144,
"g": 64,
"b": 194
},
"hsl": {
"h": 276.923,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.53717,
"c": 0.19855,
"h": 309.5
},
"luminance": 0.13491
}Semantic roles & 50–950 ramp
primary
#9040C2
secondary
#A8CC92
accent
#DB4D83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83