#8742BA#8742BA
#8742BA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.185 H 307.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8742BA |
|---|---|
| RGB | rgb(135, 66, 186) |
| HSL | hsl(275, 48%, 49%) |
| HSV | hsv(275, 65%, 73%) |
| CMYK | cmyk(27.4%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(42.14, 50.70, -51.73) |
| CIE-LCH | lch(42.14, 72.43, 314.42°) |
| OKLab | oklab(52.33% 0.1129 -0.1463) |
| OKLCH | oklch(52.33% 0.185 307.7) |
| XYZ | xyz(20.8010, 12.5928, 47.7797) |
| Luminance | 0.1259 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 4.02
Darkorchid
#9932CC
ΔE00 4.06
Royal Purple
#7851A9
ΔE00 5.27
Blueviolet
#8A2BE2
ΔE00 6.23
Darkviolet
#9400D3
ΔE00 6.89
Bluey Purple
#6241C7
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8742BA #75BA42
analogous
#4B42BA #8742BA #BA42B1
triadic
#8742BA #BA8742 #42BA87
tetradic
#8742BA #BA4B42 #75BA42 #42B1BA
square
#8742BA #BA4B42 #75BA42 #42B1BA
split-complementary
#8742BA #B1BA42 #42BA4B
monochromatic
#452260 #66328D #8742BA #A46ECB #C09BDB
Accessibility & contrast
On white
5.97
#8742BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#8742BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8742BA
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8742BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8742BA | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2B64B7
Tritanopia (blue-blind)
#7F5B78
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8742ba; /* rgb */ color: rgb(135, 66, 186); /* oklch */ color: oklch(52.3% 0.185 307.7);
Tailwind
colors: {
custom: {
50: '#ae7bcf',
500: '#8742ba',
950: '#000000',
},
}SCSS
$custom: #8742ba; $custom-light: #ae7bcf; $custom-dark: #000000;
JSON
{
"hex": "#8742ba",
"rgb": {
"r": 135,
"g": 66,
"b": 186
},
"hsl": {
"h": 274.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.52325,
"c": 0.18478,
"h": 307.7
},
"luminance": 0.12592
}Semantic roles & 50–950 ramp
primary
#8742BA
secondary
#A8C890
accent
#D7518A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82