#8A25A2#8A25A2
#8A25A2 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 48.0% C 0.198 H 319.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).
Color values
| HEX | #8A25A2 |
|---|---|
| RGB | rgb(138, 37, 162) |
| HSL | hsl(288, 63%, 39%) |
| HSV | hsv(288, 77%, 64%) |
| CMYK | cmyk(14.8%, 77.2%, 0%, 36.5%) |
| CIE-LAB | lab(36.62, 58.51, -46.34) |
| CIE-LCH | lch(36.62, 74.63, 321.62°) |
| OKLab | oklab(47.96% 0.1495 -0.1302) |
| OKLCH | oklch(47.96% 0.198 319) |
| XYZ | xyz(17.6635, 9.3359, 35.0470) |
| Luminance | 0.0934 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.73
Darkmagenta
#8B008B
ΔE00 5.01
Barney Purple
#A00498
ΔE00 5.03
Warm Purple
#952E8F
ΔE00 5.46
Purply
#983FB2
ΔE00 6.10
Barney
#AC1DB8
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A25A2 #3DA225
analogous
#4C25A2 #8A25A2 #A2257C
triadic
#8A25A2 #A28A25 #25A28A
tetradic
#8A25A2 #A24C25 #3DA225 #257CA2
square
#8A25A2 #A24C25 #3DA225 #257CA2
split-complementary
#8A25A2 #7CA225 #25A24C
monochromatic
#350E3E #601A70 #8A25A2 #B234D1 #C565DC
Accessibility & contrast
On white
7.32
#8A25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#8A25A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A25A2
7.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A25A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A25A2 | 1.00 | 7.32 | 2.87 | 7.32 |
| #FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#2E599F
Tritanopia (blue-blind)
#8A4063
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #8a25a2; /* rgb */ color: rgb(138, 37, 162); /* oklch */ color: oklch(48.0% 0.198 319.0);
Tailwind
colors: {
custom: {
50: '#b06bbe',
500: '#8a25a2',
950: '#000000',
},
}SCSS
$custom: #8a25a2; $custom-light: #b06bbe; $custom-dark: #000000;
JSON
{
"hex": "#8a25a2",
"rgb": {
"r": 138,
"g": 37,
"b": 162
},
"hsl": {
"h": 288.48,
"s": 62.814,
"l": 39.02
},
"oklch": {
"l": 0.47962,
"c": 0.19827,
"h": 319
},
"luminance": 0.09335
}Semantic roles & 50–950 ramp
primary
#8A25A2
secondary
#74C261
accent
#E64261
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81