#802DAF#802DAF
#802DAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.198 H 310.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #802DAF |
|---|---|
| RGB | rgb(128, 45, 175) |
| HSL | hsl(278, 59%, 43%) |
| HSV | hsv(278, 74%, 69%) |
| CMYK | cmyk(26.9%, 74.3%, 0%, 31.4%) |
| CIE-LAB | lab(37.04, 56.23, -53.52) |
| CIE-LCH | lch(37.04, 77.62, 316.41°) |
| OKLab | oklab(48.24% 0.1274 -0.1516) |
| OKLCH | oklch(48.24% 0.198 310) |
| XYZ | xyz(17.5768, 9.5615, 41.4688) |
| Luminance | 0.0956 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.85
Rebeccapurple
#663399
ΔE00 5.33
Darkviolet
#9400D3
ΔE00 5.59
Darkorchid
#9932CC
ΔE00 6.07
Purply
#983FB2
ΔE00 6.43
Blueviolet
#8A2BE2
ΔE00 7.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#802DAF #5CAF2D
analogous
#3F2DAF #802DAF #AF2D9D
triadic
#802DAF #AF802D #2DAF80
tetradic
#802DAF #AF3F2D #5CAF2D #2D9DAF
square
#802DAF #AF3F2D #5CAF2D #2D9DAF
split-complementary
#802DAF #9DAF2D #2DAF3F
monochromatic
#39144E #5C207E #802DAF #9F49D0 #B97ADD
Accessibility & contrast
On white
7.21
#802DAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#802DAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #802DAF
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##802DAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##802DAF | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0D58AC
Tritanopia (blue-blind)
#794B6C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #802daf; /* rgb */ color: rgb(128, 45, 175); /* oklch */ color: oklch(48.2% 0.198 310.0);
Tailwind
colors: {
custom: {
50: '#a96ec8',
500: '#802daf',
950: '#000000',
},
}SCSS
$custom: #802daf; $custom-light: #a96ec8; $custom-dark: #000000;
JSON
{
"hex": "#802daf",
"rgb": {
"r": 128,
"g": 45,
"b": 175
},
"hsl": {
"h": 278.308,
"s": 59.091,
"l": 43.137
},
"oklch": {
"l": 0.48239,
"c": 0.19804,
"h": 310
},
"luminance": 0.09561
}Semantic roles & 50–950 ramp
primary
#802DAF
secondary
#91C573
accent
#E2467E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82