#821F99#821F99
#821F99 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.193 H 319.0°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).
Color values
| HEX | #821F99 |
|---|---|
| RGB | rgb(130, 31, 153) |
| HSL | hsl(289, 66%, 36%) |
| HSV | hsv(289, 80%, 60%) |
| CMYK | cmyk(15%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(34.04, 57.17, -45.11) |
| CIE-LCH | lch(34.04, 72.82, 321.72°) |
| OKLab | oklab(45.68% 0.146 -0.1268) |
| OKLCH | oklch(45.68% 0.193 319) |
| XYZ | xyz(15.4449, 8.0265, 30.8665) |
| Luminance | 0.0803 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 1.15
Darkmagenta
#8B008B
ΔE00 3.86
Purple
#800080
ΔE00 5.04
Barney Purple
#A00498
ΔE00 5.75
Rebeccapurple
#663399
ΔE00 6.16
Warm Purple
#952E8F
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#821F99 #36991F
analogous
#451F99 #821F99 #991F73
triadic
#821F99 #99821F #1F9982
tetradic
#821F99 #99451F #36991F #1F7399
square
#821F99 #99451F #36991F #1F7399
split-complementary
#821F99 #73991F #1F9945
monochromatic
#2C0A33 #571566 #821F99 #AD29CC #C356DD
Accessibility & contrast
On white
8.06
#821F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.61
#821F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #821F99
8.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##821F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##821F99 | 1.00 | 8.06 | 2.61 | 8.06 |
| #FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#285396
Tritanopia (blue-blind)
#823A5C
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #821f99; /* rgb */ color: rgb(130, 31, 153); /* oklch */ color: oklch(45.7% 0.193 319.0);
Tailwind
colors: {
custom: {
50: '#aa67b8',
500: '#821f99',
950: '#000000',
},
}SCSS
$custom: #821f99; $custom-light: #aa67b8; $custom-dark: #000000;
JSON
{
"hex": "#821f99",
"rgb": {
"r": 130,
"g": 31,
"b": 153
},
"hsl": {
"h": 288.689,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.45685,
"c": 0.19339,
"h": 319
},
"luminance": 0.08026
}Semantic roles & 50–950 ramp
primary
#821F99
secondary
#68C054
accent
#E93F5F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80