#A371F8#A371F8
#A371F8 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.195 H 298.0°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #A371F8 |
|---|---|
| RGB | rgb(163, 113, 248) |
| HSL | hsl(262, 91%, 71%) |
| HSV | hsv(262, 54%, 97%) |
| CMYK | cmyk(34.3%, 54.4%, 0%, 2.7%) |
| CIE-LAB | lab(58.39, 47.53, -60.74) |
| CIE-LCH | lch(58.39, 77.12, 308.05°) |
| OKLab | oklab(66.12% 0.0913 -0.172) |
| OKLCH | oklch(66.12% 0.195 298) |
| XYZ | xyz(37.9485, 26.3736, 91.8800) |
| Luminance | 0.2637 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.10
Mediumpurple
#9370DB
ΔE00 4.78
Easter Purple
#C071FE
ΔE00 5.15
Lighter Purple
#A55AF4
ΔE00 5.49
Light Purple
#BF77F6
ΔE00 5.60
Periwinkle (survey)
#8E82FE
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A371F8 #C6F871
analogous
#7182F8 #A371F8 #E671F8
triadic
#A371F8 #F8A371 #71F8A3
tetradic
#A371F8 #F87182 #C6F871 #71F8E6
square
#A371F8 #F87182 #C6F871 #71F8E6
split-complementary
#A371F8 #F8E671 #82F871
monochromatic
#5B0BE3 #7D37F5 #A371F8 #C9ABFB #ECE2FE
Accessibility & contrast
On white
3.35
#A371F8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.27
#A371F8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A371F8
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A371F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A371F8 | 1.00 | 3.35 | 6.27 | 6.27 |
| #FFFFFF | 3.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#368DFD
Deuteranopia (green-blind)
#478BF5
Tritanopia (blue-blind)
#908CAA
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a371f8; /* rgb */ color: rgb(163, 113, 248); /* oklch */ color: oklch(66.1% 0.195 298.0);
Tailwind
colors: {
custom: {
50: '#c29bfb',
500: '#a371f8',
950: '#000000',
},
}SCSS
$custom: #a371f8; $custom-light: #c29bfb; $custom-dark: #000000;
JSON
{
"hex": "#a371f8",
"rgb": {
"r": 163,
"g": 113,
"b": 248
},
"hsl": {
"h": 262.222,
"s": 90.604,
"l": 70.784
},
"oklch": {
"l": 0.66119,
"c": 0.19469,
"h": 298
},
"luminance": 0.26374
}Semantic roles & 50–950 ramp
primary
#A371F8
secondary
#E7F5D0
accent
#E60091
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85