#8A4CD2#8A4CD2
#8A4CD2 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.7% C 0.198 H 301.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4CD2 |
|---|---|
| RGB | rgb(138, 76, 210) |
| HSL | hsl(268, 60%, 56%) |
| HSV | hsv(268, 64%, 82%) |
| CMYK | cmyk(34.3%, 63.8%, 0%, 17.6%) |
| CIE-LAB | lab(45.94, 52.07, -59.51) |
| CIE-LCH | lch(45.94, 79.07, 311.19°) |
| OKLab | oklab(55.66% 0.1036 -0.1691) |
| OKLCH | oklch(55.66% 0.198 301.5) |
| XYZ | xyz(24.6958, 15.2252, 62.5980) |
| Luminance | 0.1522 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.90
Darkorchid
#9932CC
ΔE00 5.26
Blueviolet
#8A2BE2
ΔE00 5.81
Lightish Purple
#A552E6
ΔE00 6.07
Bluish Purple
#703BE7
ΔE00 6.47
Light Indigo
#6D5ACF
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4CD2 #94D24C
analogous
#4C51D2 #8A4CD2 #CD4CD2
triadic
#8A4CD2 #D28A4C #4CD28A
tetradic
#8A4CD2 #D24C51 #94D24C #4CD2CD
square
#8A4CD2 #D24C51 #94D24C #4CD2CD
split-complementary
#8A4CD2 #D2CD4C #51D24C
monochromatic
#4E2183 #6B2DB4 #8A4CD2 #AA7DDE #CAAEEB
Accessibility & contrast
On white
5.19
#8A4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#8A4CD2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4CD2
5.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4CD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4CD2 | 1.00 | 5.19 | 4.04 | 5.19 |
| #FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#176CCF
Tritanopia (blue-blind)
#7B6988
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #8a4cd2; /* rgb */ color: rgb(138, 76, 210); /* oklch */ color: oklch(55.7% 0.198 301.5);
Tailwind
colors: {
custom: {
50: '#b182e1',
500: '#8a4cd2',
950: '#000000',
},
}SCSS
$custom: #8a4cd2; $custom-light: #b182e1; $custom-dark: #000000;
JSON
{
"hex": "#8a4cd2",
"rgb": {
"r": 138,
"g": 76,
"b": 210
},
"hsl": {
"h": 267.761,
"s": 59.821,
"l": 56.078
},
"oklch": {
"l": 0.55656,
"c": 0.19829,
"h": 301.5
},
"luminance": 0.15225
}Semantic roles & 50–950 ramp
primary
#8A4CD2
secondary
#BFD9A1
accent
#E3459A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83