#A371F2#A371F2
#A371F2 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.8% C 0.187 H 299.1°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #A371F2 |
|---|---|
| RGB | rgb(163, 113, 242) |
| HSL | hsl(263, 83%, 70%) |
| HSV | hsv(263, 53%, 95%) |
| CMYK | cmyk(32.6%, 53.3%, 0%, 5.1%) |
| CIE-LAB | lab(58.04, 46.03, -57.97) |
| CIE-LCH | lch(58.04, 74.02, 308.46°) |
| OKLab | oklab(65.75% 0.0911 -0.1638) |
| OKLCH | oklch(65.75% 0.187 299.1) |
| XYZ | xyz(37.0325, 26.0073, 87.0561) |
| Luminance | 0.2601 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.93
Mediumpurple
#9370DB
ΔE00 4.15
Easter Purple
#C071FE
ΔE00 5.16
Lighter Purple
#A55AF4
ΔE00 5.40
Light Purple
#BF77F6
ΔE00 5.42
Bright Lavender
#C760FF
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A371F2 #C0F271
analogous
#7180F2 #A371F2 #E471F2
triadic
#A371F2 #F2A371 #71F2A3
tetradic
#A371F2 #F27180 #C0F271 #71F2E4
square
#A371F2 #F27180 #C0F271 #71F2E4
split-complementary
#A371F2 #F2E471 #80F271
monochromatic
#5F14D5 #7F39ED #A371F2 #C7A9F7 #ECE1FC
Accessibility & contrast
On white
3.39
#A371F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.20
#A371F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A371F2
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A371F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A371F2 | 1.00 | 3.39 | 6.20 | 6.20 |
| #FFFFFF | 3.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.20 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.20 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E8BF6
Deuteranopia (green-blind)
#4D8AEF
Tritanopia (blue-blind)
#928AA7
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #a371f2; /* rgb */ color: rgb(163, 113, 242); /* oklch */ color: oklch(65.8% 0.187 299.1);
Tailwind
colors: {
custom: {
50: '#c29bf7',
500: '#a371f2',
950: '#000000',
},
}SCSS
$custom: #a371f2; $custom-light: #c29bf7; $custom-dark: #000000;
JSON
{
"hex": "#a371f2",
"rgb": {
"r": 163,
"g": 113,
"b": 242
},
"hsl": {
"h": 263.256,
"s": 83.226,
"l": 69.608
},
"oklch": {
"l": 0.65752,
"c": 0.18745,
"h": 299.1
},
"luminance": 0.26008
}Semantic roles & 50–950 ramp
primary
#A371F2
secondary
#E4F2CD
accent
#E0068B
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85