#A271F4#A271F4
#A271F4 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.8% C 0.190 H 298.3°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #A271F4 |
|---|---|
| RGB | rgb(162, 113, 244) |
| HSL | hsl(262, 86%, 70%) |
| HSV | hsv(262, 54%, 96%) |
| CMYK | cmyk(33.6%, 53.7%, 0%, 4.3%) |
| CIE-LAB | lab(58.06, 46.29, -59.06) |
| CIE-LCH | lch(58.06, 75.04, 308.09°) |
| OKLab | oklab(65.78% 0.0899 -0.1671) |
| OKLCH | oklch(65.78% 0.19 298.3) |
| XYZ | xyz(37.1305, 26.0229, 88.6371) |
| Luminance | 0.2602 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.15
Mediumpurple
#9370DB
ΔE00 4.26
Easter Purple
#C071FE
ΔE00 5.32
Lighter Purple
#A55AF4
ΔE00 5.42
Light Purple
#BF77F6
ΔE00 5.65
Periwinkle (survey)
#8E82FE
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A271F4 #C3F471
analogous
#7181F4 #A271F4 #E471F4
triadic
#A271F4 #F4A271 #71F4A2
tetradic
#A271F4 #F47181 #C3F471 #71F4E4
square
#A271F4 #F47181 #C3F471 #71F4E4
split-complementary
#A271F4 #F4E471 #81F471
monochromatic
#5C11DA #7D38F0 #A271F4 #C7AAF8 #ECE3FD
Accessibility & contrast
On white
3.38
#A271F4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.20
#A271F4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A271F4
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A271F4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A271F4 | 1.00 | 3.38 | 6.20 | 6.20 |
| #FFFFFF | 3.38 | 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)
#3B8CF8
Deuteranopia (green-blind)
#4A8AF1
Tritanopia (blue-blind)
#908BA8
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a271f4; /* rgb */ color: rgb(162, 113, 244); /* oklch */ color: oklch(65.8% 0.190 298.3);
Tailwind
colors: {
custom: {
50: '#c19bf8',
500: '#a271f4',
950: '#000000',
},
}SCSS
$custom: #a271f4; $custom-light: #c19bf8; $custom-dark: #000000;
JSON
{
"hex": "#a271f4",
"rgb": {
"r": 162,
"g": 113,
"b": 244
},
"hsl": {
"h": 262.443,
"s": 85.621,
"l": 70
},
"oklch": {
"l": 0.65777,
"c": 0.18974,
"h": 298.3
},
"luminance": 0.26023
}Semantic roles & 50–950 ramp
primary
#A271F4
secondary
#E5F3CE
accent
#E2038F
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85