#8A26C6#8A26C6
#8A26C6 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.7% C 0.229 H 308.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).
Color values
| HEX | #8A26C6 |
|---|---|
| RGB | rgb(138, 38, 198) |
| HSL | hsl(278, 68%, 46%) |
| HSV | hsv(278, 81%, 78%) |
| CMYK | cmyk(30.3%, 80.8%, 0%, 22.4%) |
| CIE-LAB | lab(39.36, 65.41, -63.25) |
| CIE-LCH | lch(39.36, 90.99, 315.96°) |
| OKLab | oklab(50.71% 0.1417 -0.1798) |
| OKLCH | oklch(50.71% 0.229 308.2) |
| XYZ | xyz(21.3652, 10.8671, 54.3872) |
| Luminance | 0.1087 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkviolet
#9400D3
ΔE00 2.53
Darkorchid
#9932CC
ΔE00 3.77
Blueviolet
#8A2BE2
ΔE00 4.07
Violet (survey)
#9A0EEA
ΔE00 4.93
Vibrant Purple
#AD03DE
ΔE00 6.07
Purply
#983FB2
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A26C6 #62C626
analogous
#3A26C6 #8A26C6 #C626B2
triadic
#8A26C6 #C68A26 #26C68A
tetradic
#8A26C6 #C63A26 #62C626 #26B2C6
square
#8A26C6 #C63A26 #62C626 #26B2C6
split-complementary
#8A26C6 #B2C626 #26C63A
monochromatic
#42125F #661C93 #8A26C6 #A74CDD #C080E7
Accessibility & contrast
On white
6.62
#8A26C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.17
#8A26C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A26C6
6.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A26C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A26C6 | 1.00 | 6.62 | 3.17 | 6.62 |
| #FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#805178
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #8a26c6; /* rgb */ color: rgb(138, 38, 198); /* oklch */ color: oklch(50.7% 0.229 308.2);
Tailwind
colors: {
custom: {
50: '#b26ed8',
500: '#8a26c6',
950: '#000000',
},
}SCSS
$custom: #8a26c6; $custom-light: #b26ed8; $custom-dark: #000000;
JSON
{
"hex": "#8a26c6",
"rgb": {
"r": 138,
"g": 38,
"b": 198
},
"hsl": {
"h": 277.5,
"s": 67.797,
"l": 46.275
},
"oklch": {
"l": 0.50705,
"c": 0.22898,
"h": 308.2
},
"luminance": 0.10867
}Semantic roles & 50–950 ramp
primary
#8A26C6
secondary
#99CF79
accent
#EB3D7E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83