#8742BF#8742BF
#8742BF is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.190 H 306.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).
Color values
| HEX | #8742BF |
|---|---|
| RGB | rgb(135, 66, 191) |
| HSL | hsl(273, 49%, 50%) |
| HSV | hsv(273, 65%, 75%) |
| CMYK | cmyk(29.3%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(42.47, 51.86, -54.13) |
| CIE-LCH | lch(42.47, 74.96, 313.77°) |
| OKLab | oklab(52.67% 0.1125 -0.1533) |
| OKLCH | oklch(52.67% 0.19 306.3) |
| XYZ | xyz(21.3418, 12.8091, 50.6282) |
| Luminance | 0.1281 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.76
Purply
#983FB2
ΔE00 4.53
Blueviolet
#8A2BE2
ΔE00 5.57
Royal Purple
#7851A9
ΔE00 5.62
Darkviolet
#9400D3
ΔE00 6.63
Bluey Purple
#6241C7
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8742BF #7ABF42
analogous
#4842BF #8742BF #BF42B8
triadic
#8742BF #BF8742 #42BF87
tetradic
#8742BF #BF4842 #7ABF42 #42B8BF
square
#8742BF #BF4842 #7ABF42 #42B8BF
split-complementary
#8742BF #B8BF42 #42BF48
monochromatic
#472265 #673292 #8742BF #A470CE #C19DDE
Accessibility & contrast
On white
5.90
#8742BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#8742BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8742BF
5.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8742BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8742BF | 1.00 | 5.90 | 3.56 | 5.90 |
| #FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#2365BC
Tritanopia (blue-blind)
#7E5D7B
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #8742bf; /* rgb */ color: rgb(135, 66, 191); /* oklch */ color: oklch(52.7% 0.190 306.3);
Tailwind
colors: {
custom: {
50: '#ae7bd3',
500: '#8742bf',
950: '#000000',
},
}SCSS
$custom: #8742bf; $custom-light: #ae7bd3; $custom-dark: #000000;
JSON
{
"hex": "#8742bf",
"rgb": {
"r": 135,
"g": 66,
"b": 191
},
"hsl": {
"h": 273.12,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.52669,
"c": 0.19016,
"h": 306.3
},
"luminance": 0.12809
}Semantic roles & 50–950 ramp
primary
#8742BF
secondary
#ACCA93
accent
#D94F8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83