#8142B2#8142B2
#8142B2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.174 H 307.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #8142B2 |
|---|---|
| RGB | rgb(129, 66, 178) |
| HSL | hsl(274, 46%, 48%) |
| HSV | hsv(274, 63%, 70%) |
| CMYK | cmyk(27.5%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(40.86, 47.45, -49.13) |
| CIE-LCH | lch(40.86, 68.30, 314.00°) |
| OKLab | oklab(51.07% 0.1054 -0.1388) |
| OKLCH | oklch(51.07% 0.174 307.2) |
| XYZ | xyz(19.0357, 11.7781, 43.3814) |
| Luminance | 0.1178 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.52
Purply
#983FB2
ΔE00 4.64
Darkorchid
#9932CC
ΔE00 5.37
Rebeccapurple
#663399
ΔE00 6.88
Bluey Purple
#6241C7
ΔE00 7.13
Blueviolet
#8A2BE2
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8142B2 #73B242
analogous
#4942B2 #8142B2 #B242AB
triadic
#8142B2 #B28142 #42B281
tetradic
#8142B2 #B24942 #73B242 #42ABB2
square
#8142B2 #B24942 #73B242 #42ABB2
split-complementary
#8142B2 #ABB242 #42B249
monochromatic
#402159 #613185 #8142B2 #9E6AC8 #BB96D8
Accessibility & contrast
On white
6.26
#8142B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#8142B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8142B2
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8142B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8142B2 | 1.00 | 6.26 | 3.36 | 6.26 |
| #FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#2D61AF
Tritanopia (blue-blind)
#795974
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8142b2; /* rgb */ color: rgb(129, 66, 178); /* oklch */ color: oklch(51.1% 0.174 307.2);
Tailwind
colors: {
custom: {
50: '#a97aca',
500: '#8142b2',
950: '#000000',
},
}SCSS
$custom: #8142b2; $custom-light: #a97aca; $custom-dark: #000000;
JSON
{
"hex": "#8142b2",
"rgb": {
"r": 129,
"g": 66,
"b": 178
},
"hsl": {
"h": 273.75,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.51067,
"c": 0.17429,
"h": 307.2
},
"luminance": 0.11778
}Semantic roles & 50–950 ramp
primary
#8142B2
secondary
#A4C48C
accent
#D6528C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82