#9142BA#9142BA
#9142BA is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.5% C 0.188 H 312.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #9142BA |
|---|---|
| RGB | rgb(145, 66, 186) |
| HSL | hsl(280, 48%, 49%) |
| HSV | hsv(280, 65%, 73%) |
| CMYK | cmyk(22%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(43.45, 52.99, -49.56) |
| CIE-LCH | lch(43.45, 72.55, 316.91°) |
| OKLab | oklab(53.55% 0.1259 -0.1396) |
| OKLCH | oklch(53.55% 0.188 312) |
| XYZ | xyz(22.4866, 13.4619, 47.8587) |
| Luminance | 0.1346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.27
Darkorchid
#9932CC
ΔE00 3.47
Barney
#AC1DB8
ΔE00 5.96
Medium Purple
#9E43A2
ΔE00 6.00
Royal Purple
#7851A9
ΔE00 6.22
Blueviolet
#8A2BE2
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9142BA #6BBA42
analogous
#5542BA #9142BA #BA42A7
triadic
#9142BA #BA9142 #42BA91
tetradic
#9142BA #BA5542 #6BBA42 #42A7BA
square
#9142BA #BA5542 #6BBA42 #42A7BA
split-complementary
#9142BA #A7BA42 #42BA55
monochromatic
#4B2260 #6E328D #9142BA #AB6ECB #C59BDB
Accessibility & contrast
On white
5.69
#9142BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#9142BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9142BA
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9142BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9142BA | 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)
#0063BE
Deuteranopia (green-blind)
#3868B7
Tritanopia (blue-blind)
#8C5978
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9142ba; /* rgb */ color: rgb(145, 66, 186); /* oklch */ color: oklch(53.5% 0.188 312.0);
Tailwind
colors: {
custom: {
50: '#b57bcf',
500: '#9142ba',
950: '#000000',
},
}SCSS
$custom: #9142ba; $custom-light: #b57bcf; $custom-dark: #000000;
JSON
{
"hex": "#9142ba",
"rgb": {
"r": 145,
"g": 66,
"b": 186
},
"hsl": {
"h": 279.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.53549,
"c": 0.18799,
"h": 312
},
"luminance": 0.13461
}Semantic roles & 50–950 ramp
primary
#9142BA
secondary
#A3C890
accent
#D7517F
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82