#8A2F8C#8A2F8C
#8A2F8C is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.167 H 326.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2F8C |
|---|---|
| RGB | rgb(138, 47, 140) |
| HSL | hsl(299, 50%, 37%) |
| HSV | hsv(299, 66%, 55%) |
| CMYK | cmyk(1.4%, 66.4%, 0%, 45.1%) |
| CIE-LAB | lab(36.61, 50.62, -32.97) |
| CIE-LCH | lch(36.61, 60.41, 326.92°) |
| OKLab | oklab(47.52% 0.1402 -0.0912) |
| OKLCH | oklch(47.52% 0.167 326.9) |
| XYZ | xyz(16.2311, 9.3308, 25.7520) |
| Luminance | 0.0933 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.15
Barney Purple
#A00498
ΔE00 4.66
Darkmagenta
#8B008B
ΔE00 4.69
Light Eggplant
#894585
ΔE00 5.52
Purple (survey)
#7E1E9C
ΔE00 5.81
Purple
#800080
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2F8C #318C2F
analogous
#5C2F8C #8A2F8C #8C2F60
triadic
#8A2F8C #8C8A2F #2F8C8A
tetradic
#8A2F8C #8C5C2F #318C2F #2F608C
square
#8A2F8C #8C5C2F #318C2F #2F608C
split-complementary
#8A2F8C #608C2F #2F8C5C
monochromatic
#301030 #5D205E #8A2F8C #B73EBA #CA69CD
Accessibility & contrast
On white
7.33
#8A2F8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.87
#8A2F8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8A2F8C
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2F8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2F8C | 1.00 | 7.33 | 2.87 | 7.33 |
| #FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#214F8F
Deuteranopia (green-blind)
#445A8A
Tritanopia (blue-blind)
#8E3C59
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #8a2f8c; /* rgb */ color: rgb(138, 47, 140); /* oklch */ color: oklch(47.5% 0.167 326.9);
Tailwind
colors: {
custom: {
50: '#af6fae',
500: '#8a2f8c',
950: '#000000',
},
}SCSS
$custom: #8a2f8c; $custom-light: #af6fae; $custom-dark: #000000;
JSON
{
"hex": "#8a2f8c",
"rgb": {
"r": 138,
"g": 47,
"b": 140
},
"hsl": {
"h": 298.71,
"s": 49.733,
"l": 36.667
},
"oklch": {
"l": 0.47524,
"c": 0.16724,
"h": 326.9
},
"luminance": 0.0933
}Semantic roles & 50–950 ramp
primary
#8A2F8C
secondary
#65B463
accent
#D94F52
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F