#8742C8#8742C8
#8742C8 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.200 H 304.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #8742C8 |
|---|---|
| RGB | rgb(135, 66, 200) |
| HSL | hsl(271, 55%, 52%) |
| HSV | hsv(271, 67%, 78%) |
| CMYK | cmyk(32.5%, 67%, 0%, 21.6%) |
| CIE-LAB | lab(43.09, 53.98, -58.37) |
| CIE-LCH | lch(43.09, 79.50, 312.76°) |
| OKLab | oklab(53.31% 0.1116 -0.1658) |
| OKLCH | oklch(53.31% 0.2 304) |
| XYZ | xyz(22.3628, 13.2175, 56.0055) |
| Luminance | 0.1322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.62
Blueviolet
#8A2BE2
ΔE00 4.54
Purply
#983FB2
ΔE00 5.55
Bluish Purple
#703BE7
ΔE00 6.03
Violet (survey)
#9A0EEA
ΔE00 6.27
Darkviolet
#9400D3
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8742C8 #83C842
analogous
#4442C8 #8742C8 #C842C6
triadic
#8742C8 #C88742 #42C887
tetradic
#8742C8 #C84442 #83C842 #42C6C8
square
#8742C8 #C84442 #83C842 #42C6C8
split-complementary
#8742C8 #C6C842 #42C844
monochromatic
#49206F #682E9F #8742C8 #A571D6 #C3A1E4
Accessibility & contrast
On white
5.76
#8742C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#8742C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8742C8
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8742C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8742C8 | 1.00 | 5.76 | 3.64 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0E66C5
Tritanopia (blue-blind)
#7B6080
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #8742c8; /* rgb */ color: rgb(135, 66, 200); /* oklch */ color: oklch(53.3% 0.200 304.0);
Tailwind
colors: {
custom: {
50: '#af7bd9',
500: '#8742c8',
950: '#000000',
},
}SCSS
$custom: #8742c8; $custom-light: #af7bd9; $custom-dark: #000000;
JSON
{
"hex": "#8742c8",
"rgb": {
"r": 135,
"g": 66,
"b": 200
},
"hsl": {
"h": 270.896,
"s": 54.918,
"l": 52.157
},
"oklch": {
"l": 0.53306,
"c": 0.19986,
"h": 304
},
"luminance": 0.13217
}Semantic roles & 50–950 ramp
primary
#8742C8
secondary
#B2D096
accent
#DE4A92
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83