#9040BA#9040BA
#9040BA is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.2% C 0.190 H 311.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).
Color values
| HEX | #9040BA |
|---|---|
| RGB | rgb(144, 64, 186) |
| HSL | hsl(279, 49%, 49%) |
| HSV | hsv(279, 66%, 73%) |
| CMYK | cmyk(22.6%, 65.6%, 0%, 27.1%) |
| CIE-LAB | lab(42.98, 53.70, -50.33) |
| CIE-LCH | lch(42.98, 73.60, 316.85°) |
| OKLab | oklab(53.18% 0.127 -0.1419) |
| OKLCH | oklch(53.18% 0.19 311.8) |
| XYZ | xyz(22.1963, 13.1418, 47.8122) |
| Luminance | 0.1314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.42
Darkorchid
#9932CC
ΔE00 3.25
Barney
#AC1DB8
ΔE00 5.88
Medium Purple
#9E43A2
ΔE00 6.22
Royal Purple
#7851A9
ΔE00 6.33
Blueviolet
#8A2BE2
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9040BA #6ABA40
analogous
#5340BA #9040BA #BA40A7
triadic
#9040BA #BA9040 #40BA90
tetradic
#9040BA #BA5340 #6ABA40 #40A7BA
square
#9040BA #BA5340 #6ABA40 #40A7BA
split-complementary
#9040BA #A7BA40 #40BA53
monochromatic
#49215F #6D308C #9040BA #AB6BCC #C599DC
Accessibility & contrast
On white
5.79
#9040BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.63
#9040BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9040BA
5.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9040BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9040BA | 1.00 | 5.79 | 3.63 | 5.79 |
| #FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#3467B7
Tritanopia (blue-blind)
#8B5877
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #9040ba; /* rgb */ color: rgb(144, 64, 186); /* oklch */ color: oklch(53.2% 0.190 311.8);
Tailwind
colors: {
custom: {
50: '#b47acf',
500: '#9040ba',
950: '#000000',
},
}SCSS
$custom: #9040ba; $custom-light: #b47acf; $custom-dark: #000000;
JSON
{
"hex": "#9040ba",
"rgb": {
"r": 144,
"g": 64,
"b": 186
},
"hsl": {
"h": 279.344,
"s": 48.8,
"l": 49.02
},
"oklch": {
"l": 0.53178,
"c": 0.19038,
"h": 311.8
},
"luminance": 0.13141
}Semantic roles & 50–950 ramp
primary
#9040BA
secondary
#A2C88E
accent
#D84F7F
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82