#9042BC#9042BC
#9042BC is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.6% C 0.190 H 311.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #9042BC |
|---|---|
| RGB | rgb(144, 66, 188) |
| HSL | hsl(278, 48%, 50%) |
| HSV | hsv(278, 65%, 74%) |
| CMYK | cmyk(23.4%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(43.44, 53.19, -50.75) |
| CIE-LCH | lch(43.44, 73.52, 316.35°) |
| OKLab | oklab(53.56% 0.1245 -0.1431) |
| OKLCH | oklch(53.56% 0.19 311) |
| XYZ | xyz(22.5252, 13.4571, 48.9781) |
| Luminance | 0.1346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.69
Darkorchid
#9932CC
ΔE00 3.28
Royal Purple
#7851A9
ΔE00 6.18
Barney
#AC1DB8
ΔE00 6.20
Medium Purple
#9E43A2
ΔE00 6.43
Blueviolet
#8A2BE2
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9042BC #6EBC42
analogous
#5342BC #9042BC #BC42AB
triadic
#9042BC #BC9042 #42BC90
tetradic
#9042BC #BC5342 #6EBC42 #42ABBC
square
#9042BC #BC5342 #6EBC42 #42ABBC
split-complementary
#9042BC #ABBC42 #42BC53
monochromatic
#4B2261 #6D328F #9042BC #AB6FCC #C59CDC
Accessibility & contrast
On white
5.69
#9042BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#9042BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9042BC
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9042BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9042BC | 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)
#0063C0
Deuteranopia (green-blind)
#3468B9
Tritanopia (blue-blind)
#8A5A79
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9042bc; /* rgb */ color: rgb(144, 66, 188); /* oklch */ color: oklch(53.6% 0.190 311.0);
Tailwind
colors: {
custom: {
50: '#b47bd1',
500: '#9042bc',
950: '#000000',
},
}SCSS
$custom: #9042bc; $custom-light: #b47bd1; $custom-dark: #000000;
JSON
{
"hex": "#9042bc",
"rgb": {
"r": 144,
"g": 66,
"b": 188
},
"hsl": {
"h": 278.361,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.53556,
"c": 0.18971,
"h": 311
},
"luminance": 0.13457
}Semantic roles & 50–950 ramp
primary
#9042BC
secondary
#A5C991
accent
#D85081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82