#8A4FB7#8A4FB7
#8A4FB7 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.163 H 308.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).
Color values
| HEX | #8A4FB7 |
|---|---|
| RGB | rgb(138, 79, 183) |
| HSL | hsl(274, 42%, 51%) |
| HSV | hsv(274, 57%, 72%) |
| CMYK | cmyk(24.6%, 56.8%, 0%, 28.2%) |
| CIE-LAB | lab(44.82, 44.01, -45.66) |
| CIE-LCH | lch(44.82, 63.42, 313.94°) |
| OKLab | oklab(54.3% 0.1006 -0.1285) |
| OKLCH | oklch(54.3% 0.163 308.1) |
| XYZ | xyz(21.8227, 14.4144, 46.4232) |
| Luminance | 0.1441 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.04
Deep Lavender
#8D5EB7
ΔE00 4.32
Purply
#983FB2
ΔE00 4.44
Amethyst
#9B5FC0
ΔE00 5.92
Darkorchid
#9932CC
ΔE00 6.12
Medium Purple
#9E43A2
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A4FB7 #7CB74F
analogous
#564FB7 #8A4FB7 #B74FB0
triadic
#8A4FB7 #B78A4F #4FB78A
tetradic
#8A4FB7 #B7564F #7CB74F #4FB0B7
square
#8A4FB7 #B7564F #7CB74F #4FB0B7
split-complementary
#8A4FB7 #B0B74F #4FB756
monochromatic
#4A2963 #6A3A8F #8A4FB7 #A77AC9 #C4A6DB
Accessibility & contrast
On white
5.41
#8A4FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#8A4FB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A4FB7
5.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A4FB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A4FB7 | 1.00 | 5.41 | 3.88 | 5.41 |
| #FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B68BA
Deuteranopia (green-blind)
#416BB4
Tritanopia (blue-blind)
#83627B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #8a4fb7; /* rgb */ color: rgb(138, 79, 183); /* oklch */ color: oklch(54.3% 0.163 308.1);
Tailwind
colors: {
custom: {
50: '#af83cd',
500: '#8a4fb7',
950: '#000000',
},
}SCSS
$custom: #8a4fb7; $custom-light: #af83cd; $custom-dark: #000000;
JSON
{
"hex": "#8a4fb7",
"rgb": {
"r": 138,
"g": 79,
"b": 183
},
"hsl": {
"h": 274.038,
"s": 41.935,
"l": 51.373
},
"oklch": {
"l": 0.54296,
"c": 0.16318,
"h": 308.1
},
"luminance": 0.14414
}Semantic roles & 50–950 ramp
primary
#8A4FB7
secondary
#AEC89A
accent
#D2568C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82