#8A42C2#8A42C2
#8A42C2 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.194 H 306.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #8A42C2 |
|---|---|
| RGB | rgb(138, 66, 194) |
| HSL | hsl(274, 51%, 51%) |
| HSV | hsv(274, 66%, 76%) |
| CMYK | cmyk(28.9%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(43.06, 53.21, -54.92) |
| CIE-LCH | lch(43.06, 76.47, 314.10°) |
| OKLab | oklab(53.23% 0.1162 -0.1555) |
| OKLCH | oklch(53.23% 0.194 306.8) |
| XYZ | xyz(22.1650, 13.1950, 52.4077) |
| Luminance | 0.1320 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.30
Purply
#983FB2
ΔE00 4.38
Blueviolet
#8A2BE2
ΔE00 5.34
Royal Purple
#7851A9
ΔE00 6.03
Darkviolet
#9400D3
ΔE00 6.51
Violet (survey)
#9A0EEA
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A42C2 #7AC242
analogous
#4A42C2 #8A42C2 #C242BA
triadic
#8A42C2 #C28A42 #42C28A
tetradic
#8A42C2 #C24A42 #7AC242 #42BAC2
square
#8A42C2 #C24A42 #7AC242 #42BAC2
split-complementary
#8A42C2 #BAC242 #42C24A
monochromatic
#492268 #6A3196 #8A42C2 #A770D1 #C39FE0
Accessibility & contrast
On white
5.77
#8A42C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#8A42C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A42C2
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A42C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A42C2 | 1.00 | 5.77 | 3.64 | 5.77 |
| #FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#2466BF
Tritanopia (blue-blind)
#815D7C
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8a42c2; /* rgb */ color: rgb(138, 66, 194); /* oklch */ color: oklch(53.2% 0.194 306.8);
Tailwind
colors: {
custom: {
50: '#b07bd5',
500: '#8a42c2',
950: '#000000',
},
}SCSS
$custom: #8a42c2; $custom-light: #b07bd5; $custom-dark: #000000;
JSON
{
"hex": "#8a42c2",
"rgb": {
"r": 138,
"g": 66,
"b": 194
},
"hsl": {
"h": 273.75,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.53234,
"c": 0.19418,
"h": 306.8
},
"luminance": 0.13195
}Semantic roles & 50–950 ramp
primary
#8A42C2
secondary
#ACCC94
accent
#DB4D8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83