#8A48CD#8A48CD
#8A48CD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.8% C 0.198 H 303.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).
Color values
| HEX | #8A48CD |
|---|---|
| RGB | rgb(138, 72, 205) |
| HSL | hsl(270, 57%, 54%) |
| HSV | hsv(270, 65%, 80%) |
| CMYK | cmyk(32.7%, 64.9%, 0%, 19.6%) |
| CIE-LAB | lab(44.87, 52.87, -58.37) |
| CIE-LCH | lch(44.87, 78.75, 312.17°) |
| OKLab | oklab(54.77% 0.1085 -0.1657) |
| OKLCH | oklch(54.77% 0.198 303.2) |
| XYZ | xyz(23.8155, 14.4458, 59.2794) |
| Luminance | 0.1445 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.28
Purpley
#8756E4
ΔE00 5.14
Blueviolet
#8A2BE2
ΔE00 5.24
Purply
#983FB2
ΔE00 6.01
Bluish Purple
#703BE7
ΔE00 6.40
Royal Purple
#7851A9
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A48CD #8BCD48
analogous
#4849CD #8A48CD #CC48CD
triadic
#8A48CD #CD8A48 #48CD8A
tetradic
#8A48CD #CD4849 #8BCD48 #48CDCC
square
#8A48CD #CD4849 #8BCD48 #48CDCC
split-complementary
#8A48CD #CDCC48 #49CD48
monochromatic
#4D2179 #6B2EA9 #8A48CD #A978DA #C7A8E7
Accessibility & contrast
On white
5.40
#8A48CD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.89
#8A48CD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A48CD
5.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A48CD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A48CD | 1.00 | 5.40 | 3.89 | 5.40 |
| #FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#196ACA
Tritanopia (blue-blind)
#7D6584
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a48cd; /* rgb */ color: rgb(138, 72, 205); /* oklch */ color: oklch(54.8% 0.198 303.2);
Tailwind
colors: {
custom: {
50: '#b17fdd',
500: '#8a48cd',
950: '#000000',
},
}SCSS
$custom: #8a48cd; $custom-light: #b17fdd; $custom-dark: #000000;
JSON
{
"hex": "#8a48cd",
"rgb": {
"r": 138,
"g": 72,
"b": 205
},
"hsl": {
"h": 269.774,
"s": 57.082,
"l": 54.314
},
"oklch": {
"l": 0.54772,
"c": 0.19808,
"h": 303.2
},
"luminance": 0.14446
}Semantic roles & 50–950 ramp
primary
#8A48CD
secondary
#B9D59C
accent
#E04794
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83