#8742CE#8742CE
#8742CE is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.7% C 0.206 H 302.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).
Color values
| HEX | #8742CE |
|---|---|
| RGB | rgb(135, 66, 206) |
| HSL | hsl(270, 59%, 53%) |
| HSV | hsv(270, 68%, 81%) |
| CMYK | cmyk(34.5%, 68%, 0%, 19.2%) |
| CIE-LAB | lab(43.51, 55.41, -61.15) |
| CIE-LCH | lch(43.51, 82.52, 312.18°) |
| OKLab | oklab(53.74% 0.1109 -0.174) |
| OKLCH | oklch(53.74% 0.206 302.5) |
| XYZ | xyz(23.0778, 13.5035, 59.7712) |
| Luminance | 0.1350 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.80
Blueviolet
#8A2BE2
ΔE00 4.01
Bluish Purple
#703BE7
ΔE00 5.37
Violet (survey)
#9A0EEA
ΔE00 5.85
Purpley
#8756E4
ΔE00 6.04
Purply
#983FB2
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8742CE #89CE42
analogous
#4243CE #8742CE #CD42CE
triadic
#8742CE #CE8742 #42CE87
tetradic
#8742CE #CE4243 #89CE42 #42CECD
square
#8742CE #CE4243 #89CE42 #42CECD
split-complementary
#8742CE #CECD42 #43CE42
monochromatic
#4A1F77 #692BA7 #8742CE #A673DB #C5A3E7
Accessibility & contrast
On white
5.67
#8742CE on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.70
#8742CE on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8742CE
5.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8742CE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8742CE | 1.00 | 5.67 | 3.70 | 5.67 |
| #FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#796283
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #8742ce; /* rgb */ color: rgb(135, 66, 206); /* oklch */ color: oklch(53.7% 0.206 302.5);
Tailwind
colors: {
custom: {
50: '#af7bde',
500: '#8742ce',
950: '#000000',
},
}SCSS
$custom: #8742ce; $custom-light: #af7bde; $custom-dark: #000000;
JSON
{
"hex": "#8742ce",
"rgb": {
"r": 135,
"g": 66,
"b": 206
},
"hsl": {
"h": 269.571,
"s": 58.824,
"l": 53.333
},
"oklch": {
"l": 0.53743,
"c": 0.20631,
"h": 302.5
},
"luminance": 0.13504
}Semantic roles & 50–950 ramp
primary
#8742CE
secondary
#B6D498
accent
#E24695
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83