#A271F7#A271F7
#A271F7 is a light, vivid violet. Relative luminance 0.262; OKLCH L 66.0% C 0.193 H 297.7°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #A271F7 |
|---|---|
| RGB | rgb(162, 113, 247) |
| HSL | hsl(262, 89%, 71%) |
| HSV | hsv(262, 54%, 97%) |
| CMYK | cmyk(34.4%, 54.3%, 0%, 3.1%) |
| CIE-LAB | lab(58.23, 47.04, -60.44) |
| CIE-LCH | lch(58.23, 76.59, 307.90°) |
| OKLab | oklab(65.96% 0.09 -0.1711) |
| OKLCH | oklch(65.96% 0.193 297.7) |
| XYZ | xyz(37.5897, 26.2066, 91.0556) |
| Luminance | 0.2621 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.24
Mediumpurple
#9370DB
ΔE00 4.59
Easter Purple
#C071FE
ΔE00 5.33
Lighter Purple
#A55AF4
ΔE00 5.48
Light Purple
#BF77F6
ΔE00 5.74
Periwinkle (survey)
#8E82FE
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A271F7 #C6F771
analogous
#7183F7 #A271F7 #E571F7
triadic
#A271F7 #F7A271 #71F7A2
tetradic
#A271F7 #F77183 #C6F771 #71F7E5
square
#A271F7 #F77183 #C6F771 #71F7E5
split-complementary
#A271F7 #F7E571 #83F771
monochromatic
#5A0DE1 #7C37F4 #A271F7 #C8ABFA #ECE2FD
Accessibility & contrast
On white
3.36
#A271F7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.24
#A271F7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A271F7
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A271F7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A271F7 | 1.00 | 3.36 | 6.24 | 6.24 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#378CFC
Deuteranopia (green-blind)
#478BF4
Tritanopia (blue-blind)
#8F8CA9
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a271f7; /* rgb */ color: rgb(162, 113, 247); /* oklch */ color: oklch(66.0% 0.193 297.7);
Tailwind
colors: {
custom: {
50: '#c29bfa',
500: '#a271f7',
950: '#000000',
},
}SCSS
$custom: #a271f7; $custom-light: #c29bfa; $custom-dark: #000000;
JSON
{
"hex": "#a271f7",
"rgb": {
"r": 162,
"g": 113,
"b": 247
},
"hsl": {
"h": 261.94,
"s": 89.333,
"l": 70.588
},
"oklch": {
"l": 0.65961,
"c": 0.19336,
"h": 297.7
},
"luminance": 0.26207
}Semantic roles & 50–950 ramp
primary
#A271F7
secondary
#E7F4D0
accent
#E60092
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85