#8A4FBD#8A4FBD
#8A4FBD is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.170 H 306.3°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4FBD |
|---|---|
| RGB | rgb(138, 79, 189) |
| HSL | hsl(272, 45%, 53%) |
| HSV | hsv(272, 58%, 74%) |
| CMYK | cmyk(27%, 58.2%, 0%, 25.9%) |
| CIE-LAB | lab(45.18, 45.42, -48.60) |
| CIE-LCH | lch(45.18, 66.52, 313.07°) |
| OKLab | oklab(54.67% 0.1008 -0.137) |
| OKLCH | oklch(54.67% 0.17 306.3) |
| XYZ | xyz(22.4606, 14.6696, 49.7825) |
| Luminance | 0.1467 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.50
Deep Lavender
#8D5EB7
ΔE00 4.54
Purply
#983FB2
ΔE00 4.91
Darkorchid
#9932CC
ΔE00 5.75
Amethyst
#9B5FC0
ΔE00 5.94
Purpley
#8756E4
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4FBD #82BD4F
analogous
#534FBD #8A4FBD #BD4FB9
triadic
#8A4FBD #BD8A4F #4FBD8A
tetradic
#8A4FBD #BD534F #82BD4F #4FB9BD
square
#8A4FBD #BD534F #82BD4F #4FB9BD
split-complementary
#8A4FBD #B9BD4F #4FBD53
monochromatic
#4B286A #6B3896 #8A4FBD #A87CCE #C5A8DE
Accessibility & contrast
On white
5.34
#8A4FBD on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#8A4FBD on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4FBD
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4FBD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4FBD | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2369C1
Deuteranopia (green-blind)
#3C6BBA
Tritanopia (blue-blind)
#82647E
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #8a4fbd; /* rgb */ color: rgb(138, 79, 189); /* oklch */ color: oklch(54.7% 0.170 306.3);
Tailwind
colors: {
custom: {
50: '#af83d1',
500: '#8a4fbd',
950: '#000000',
},
}SCSS
$custom: #8a4fbd; $custom-light: #af83d1; $custom-dark: #000000;
JSON
{
"hex": "#8a4fbd",
"rgb": {
"r": 138,
"g": 79,
"b": 189
},
"hsl": {
"h": 272.182,
"s": 45.455,
"l": 52.549
},
"oklch": {
"l": 0.54672,
"c": 0.1701,
"h": 306.3
},
"luminance": 0.14669
}Semantic roles & 50–950 ramp
primary
#8A4FBD
secondary
#B2CC9C
accent
#D5538F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82