#802FCC#802FCC
#802FCC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.7% C 0.224 H 302.2°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).
Color values
| HEX | #802FCC |
|---|---|
| RGB | rgb(128, 47, 204) |
| HSL | hsl(271, 63%, 49%) |
| HSV | hsv(271, 77%, 80%) |
| CMYK | cmyk(37.3%, 77%, 0%, 20%) |
| CIE-LAB | lab(39.55, 61.94, -66.48) |
| CIE-LCH | lch(39.55, 90.86, 312.98°) |
| OKLab | oklab(50.7% 0.1194 -0.1897) |
| OKLCH | oklch(50.7% 0.224 302.2) |
| XYZ | xyz(20.8151, 10.9818, 58.1381) |
| Luminance | 0.1098 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blueviolet
#8A2BE2
ΔE00 3.17
Darkviolet
#9400D3
ΔE00 3.92
Darkorchid
#9932CC
ΔE00 4.72
Burple
#6832E3
ΔE00 4.84
Bluish Purple
#703BE7
ΔE00 5.07
Violet (survey)
#9A0EEA
ΔE00 5.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#802FCC #7BCC2F
analogous
#312FCC #802FCC #CC2FCA
triadic
#802FCC #CC802F #2FCC80
tetradic
#802FCC #CC312F #7BCC2F #2FCACC
square
#802FCC #CC312F #7BCC2F #2FCACC
split-complementary
#802FCC #CACC2F #2FCC31
monochromatic
#421869 #61249A #802FCC #9E5EDA #BC90E5
Accessibility & contrast
On white
6.57
#802FCC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.20
#802FCC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #802FCC
6.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##802FCC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##802FCC | 1.00 | 6.57 | 3.20 | 6.57 |
| #FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#70587D
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #802fcc; /* rgb */ color: rgb(128, 47, 204); /* oklch */ color: oklch(50.7% 0.224 302.2);
Tailwind
colors: {
custom: {
50: '#ac71dd',
500: '#802fcc',
950: '#000000',
},
}SCSS
$custom: #802fcc; $custom-light: #ac71dd; $custom-dark: #000000;
JSON
{
"hex": "#802fcc",
"rgb": {
"r": 128,
"g": 47,
"b": 204
},
"hsl": {
"h": 270.955,
"s": 62.55,
"l": 49.216
},
"oklch": {
"l": 0.50699,
"c": 0.22419,
"h": 302.2
},
"luminance": 0.10982
}Semantic roles & 50–950 ramp
primary
#802FCC
secondary
#AAD087
accent
#E64291
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83