#9040BF#9040BF
#9040BF is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.5% C 0.195 H 310.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).
Color values
| HEX | #9040BF |
|---|---|
| RGB | rgb(144, 64, 191) |
| HSL | hsl(278, 50%, 50%) |
| HSV | hsv(278, 66%, 75%) |
| CMYK | cmyk(24.6%, 66.5%, 0%, 25.1%) |
| CIE-LAB | lab(43.30, 54.79, -52.74) |
| CIE-LCH | lch(43.30, 76.05, 316.09°) |
| OKLab | oklab(53.51% 0.1266 -0.1489) |
| OKLCH | oklch(53.51% 0.195 310.4) |
| XYZ | xyz(22.7372, 13.3582, 50.6607) |
| Luminance | 0.1336 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.75
Purply
#983FB2
ΔE00 3.09
Blueviolet
#8A2BE2
ΔE00 5.95
Barney
#AC1DB8
ΔE00 6.18
Vibrant Purple
#AD03DE
ΔE00 6.42
Darkviolet
#9400D3
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9040BF #6FBF40
analogous
#5040BF #9040BF #BF40AF
triadic
#9040BF #BF9040 #40BF90
tetradic
#9040BF #BF5040 #6FBF40 #40AFBF
square
#9040BF #BF5040 #6FBF40 #40AFBF
split-complementary
#9040BF #AFBF40 #40BF50
monochromatic
#4B2163 #6D3191 #9040BF #AB6ECE #C59CDE
Accessibility & contrast
On white
5.72
#9040BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.67
#9040BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9040BF
5.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9040BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9040BF | 1.00 | 5.72 | 3.67 | 5.72 |
| #FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#2E68BC
Tritanopia (blue-blind)
#8A5A7A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #9040bf; /* rgb */ color: rgb(144, 64, 191); /* oklch */ color: oklch(53.5% 0.195 310.4);
Tailwind
colors: {
custom: {
50: '#b47ad3',
500: '#9040bf',
950: '#000000',
},
}SCSS
$custom: #9040bf; $custom-light: #b47ad3; $custom-dark: #000000;
JSON
{
"hex": "#9040bf",
"rgb": {
"r": 144,
"g": 64,
"b": 191
},
"hsl": {
"h": 277.795,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.53513,
"c": 0.19549,
"h": 310.4
},
"luminance": 0.13358
}Semantic roles & 50–950 ramp
primary
#9040BF
secondary
#A6CA91
accent
#D94E82
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83