#804AFF#804AFF
#804AFF is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.9% C 0.250 H 289.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #804AFF |
|---|---|
| RGB | rgb(128, 74, 255) |
| HSL | hsl(258, 100%, 65%) |
| HSV | hsv(258, 71%, 100%) |
| CMYK | cmyk(49.8%, 71%, 0%, 0%) |
| CIE-LAB | lab(47.89, 62.76, -81.80) |
| CIE-LCH | lch(47.89, 103.10, 307.49°) |
| OKLab | oklab(57.86% 0.0852 -0.2349) |
| OKLCH | oklch(57.86% 0.25 289.9) |
| XYZ | xyz(29.3957, 16.7055, 96.2640) |
| Luminance | 0.1671 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.13
Bluish Purple
#703BE7
ΔE00 5.85
Purpleish Blue
#6140EF
ΔE00 5.95
Electric Purple
#AA23FF
ΔE00 6.92
Blueviolet
#8A2BE2
ΔE00 7.23
Violet
#8F00FF
ΔE00 7.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#804AFF #C9FF4A
analogous
#4A6EFF #804AFF #DB4AFF
triadic
#804AFF #FF804A #4AFF80
tetradic
#804AFF #FF4A6E #C9FF4A #4AFFDB
square
#804AFF #FF4A6E #C9FF4A #4AFFDB
split-complementary
#804AFF #FFDB4A #6EFF4A
monochromatic
#3E00CF #550DFF #804AFF #AB87FF #D6C4FF
Accessibility & contrast
On white
4.84
#804AFF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#804AFF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #804AFF
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##804AFF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##804AFF | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#006DFC
Tritanopia (blue-blind)
#537AA0
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #804aff; /* rgb */ color: rgb(128, 74, 255); /* oklch */ color: oklch(57.9% 0.250 289.9);
Tailwind
colors: {
custom: {
50: '#af81ff',
500: '#804aff',
950: '#000000',
},
}SCSS
$custom: #804aff; $custom-light: #af81ff; $custom-dark: #000000;
JSON
{
"hex": "#804aff",
"rgb": {
"r": 128,
"g": 74,
"b": 255
},
"hsl": {
"h": 257.901,
"s": 100,
"l": 64.51
},
"oklch": {
"l": 0.57856,
"c": 0.24987,
"h": 289.9
},
"luminance": 0.16707
}Semantic roles & 50–950 ramp
primary
#804AFF
secondary
#DFF2B3
accent
#E600A1
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#120B18
muted
#817C86