#8A4DC7#8A4DC7
#8A4DC7 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.184 H 304.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4DC7 |
|---|---|
| RGB | rgb(138, 77, 199) |
| HSL | hsl(270, 52%, 54%) |
| HSV | hsv(270, 61%, 78%) |
| CMYK | cmyk(30.7%, 61.3%, 0%, 22%) |
| CIE-LAB | lab(45.41, 48.87, -54.03) |
| CIE-LCH | lch(45.41, 72.86, 312.13°) |
| OKLab | oklab(55.04% 0.1031 -0.153) |
| OKLCH | oklch(55.04% 0.184 304) |
| XYZ | xyz(23.4416, 14.8346, 55.6502) |
| Luminance | 0.1484 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.12
Purpley
#8756E4
ΔE00 5.24
Royal Purple
#7851A9
ΔE00 5.65
Deep Lavender
#8D5EB7
ΔE00 5.66
Purply
#983FB2
ΔE00 5.71
Blueviolet
#8A2BE2
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4DC7 #8AC74D
analogous
#4D4DC7 #8A4DC7 #C74DC7
triadic
#8A4DC7 #C78A4D #4DC78A
tetradic
#8A4DC7 #C74D4D #8AC74D #4DC7C7
square
#8A4DC7 #C74D4D #8AC74D #4DC7C7
split-complementary
#8A4DC7 #C7C74D #4DC74D
monochromatic
#4D2575 #6B33A3 #8A4DC7 #A97CD6 #C7AAE4
Accessibility & contrast
On white
5.29
#8A4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#8A4DC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4DC7
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4DC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4DC7 | 1.00 | 5.29 | 3.97 | 5.29 |
| #FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#2E6BC4
Tritanopia (blue-blind)
#7F6683
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a4dc7; /* rgb */ color: rgb(138, 77, 199); /* oklch */ color: oklch(55.0% 0.184 304.0);
Tailwind
colors: {
custom: {
50: '#b082d9',
500: '#8a4dc7',
950: '#000000',
},
}SCSS
$custom: #8a4dc7; $custom-light: #b082d9; $custom-dark: #000000;
JSON
{
"hex": "#8a4dc7",
"rgb": {
"r": 138,
"g": 77,
"b": 199
},
"hsl": {
"h": 270,
"s": 52.137,
"l": 54.118
},
"oklch": {
"l": 0.55038,
"c": 0.18448,
"h": 304
},
"luminance": 0.14835
}Semantic roles & 50–950 ramp
primary
#8A4DC7
secondary
#B8D29E
accent
#DC4C94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83