#8740B7#8740B7
#8740B7 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.184 H 308.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).
Color values
| HEX | #8740B7 |
|---|---|
| RGB | rgb(135, 64, 183) |
| HSL | hsl(276, 48%, 48%) |
| HSV | hsv(276, 65%, 72%) |
| CMYK | cmyk(26.2%, 65%, 0%, 28.2%) |
| CIE-LAB | lab(41.59, 50.99, -50.86) |
| CIE-LCH | lch(41.59, 72.02, 315.07°) |
| OKLab | oklab(51.86% 0.1154 -0.1437) |
| OKLCH | oklch(51.86% 0.184 308.8) |
| XYZ | xyz(20.3706, 12.2369, 46.0794) |
| Luminance | 0.1224 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.79
Darkorchid
#9932CC
ΔE00 4.14
Royal Purple
#7851A9
ΔE00 5.43
Blueviolet
#8A2BE2
ΔE00 6.48
Darkviolet
#9400D3
ΔE00 6.74
Barney
#AC1DB8
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8740B7 #70B740
analogous
#4B40B7 #8740B7 #B740AB
triadic
#8740B7 #B78740 #40B787
tetradic
#8740B7 #B74B40 #70B740 #40ABB7
square
#8740B7 #B74B40 #70B740 #40ABB7
split-complementary
#8740B7 #ABB740 #40B74B
monochromatic
#44205C #66308A #8740B7 #A369CB #BF97DB
Accessibility & contrast
On white
6.09
#8740B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.45
#8740B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8740B7
6.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8740B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8740B7 | 1.00 | 6.09 | 3.45 | 6.09 |
| #FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2C63B4
Tritanopia (blue-blind)
#805876
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #8740b7; /* rgb */ color: rgb(135, 64, 183); /* oklch */ color: oklch(51.9% 0.184 308.8);
Tailwind
colors: {
custom: {
50: '#ae79cd',
500: '#8740b7',
950: '#000000',
},
}SCSS
$custom: #8740b7; $custom-light: #ae79cd; $custom-dark: #000000;
JSON
{
"hex": "#8740b7",
"rgb": {
"r": 135,
"g": 64,
"b": 183
},
"hsl": {
"h": 275.798,
"s": 48.178,
"l": 48.431
},
"oklch": {
"l": 0.51864,
"c": 0.18433,
"h": 308.8
},
"luminance": 0.12237
}Semantic roles & 50–950 ramp
primary
#8740B7
secondary
#A4C68D
accent
#D85087
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82