#8A41B2#8A41B2
#8A41B2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.179 H 311.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #8A41B2 |
|---|---|
| RGB | rgb(138, 65, 178) |
| HSL | hsl(279, 47%, 48%) |
| HSV | hsv(279, 63%, 70%) |
| CMYK | cmyk(22.5%, 63.5%, 0%, 30.2%) |
| CIE-LAB | lab(41.84, 50.07, -47.49) |
| CIE-LCH | lch(41.84, 69.01, 316.51°) |
| OKLab | oklab(52.03% 0.1184 -0.1337) |
| OKLCH | oklch(52.03% 0.179 311.5) |
| XYZ | xyz(20.4059, 12.3987, 43.4291) |
| Luminance | 0.1240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.82
Darkorchid
#9932CC
ΔE00 4.54
Royal Purple
#7851A9
ΔE00 5.39
Medium Purple
#9E43A2
ΔE00 6.13
Barney
#AC1DB8
ΔE00 6.61
Darkviolet
#9400D3
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A41B2 #69B241
analogous
#5141B2 #8A41B2 #B241A1
triadic
#8A41B2 #B28A41 #41B28A
tetradic
#8A41B2 #B25141 #69B241 #41A1B2
square
#8A41B2 #B25141 #69B241 #41A1B2
split-complementary
#8A41B2 #A1B241 #41B251
monochromatic
#442058 #673185 #8A41B2 #A668C8 #C195D8
Accessibility & contrast
On white
6.04
#8A41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#8A41B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A41B2
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A41B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A41B2 | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A5FB5
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#855774
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #8a41b2; /* rgb */ color: rgb(138, 65, 178); /* oklch */ color: oklch(52.0% 0.179 311.5);
Tailwind
colors: {
custom: {
50: '#af7aca',
500: '#8a41b2',
950: '#000000',
},
}SCSS
$custom: #8a41b2; $custom-light: #af7aca; $custom-dark: #000000;
JSON
{
"hex": "#8a41b2",
"rgb": {
"r": 138,
"g": 65,
"b": 178
},
"hsl": {
"h": 278.761,
"s": 46.502,
"l": 47.647
},
"oklch": {
"l": 0.52029,
"c": 0.17861,
"h": 311.5
},
"luminance": 0.12398
}Semantic roles & 50–950 ramp
primary
#8A41B2
secondary
#9FC48B
accent
#D65281
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82