#A271F8#A271F8
#A271F8 is a light, vivid violet. Relative luminance 0.263; OKLCH L 66.0% C 0.195 H 297.6°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).
Color values
| HEX | #A271F8 |
|---|---|
| RGB | rgb(162, 113, 248) |
| HSL | hsl(262, 91%, 71%) |
| HSV | hsv(262, 54%, 97%) |
| CMYK | cmyk(34.7%, 54.4%, 0%, 2.7%) |
| CIE-LAB | lab(58.29, 47.30, -60.90) |
| CIE-LCH | lch(58.29, 77.11, 307.83°) |
| OKLab | oklab(66.02% 0.09 -0.1725) |
| OKLCH | oklch(66.02% 0.195 297.6) |
| XYZ | xyz(37.7445, 26.2684, 91.8705) |
| Luminance | 0.2627 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.29
Mediumpurple
#9370DB
ΔE00 4.70
Easter Purple
#C071FE
ΔE00 5.33
Lighter Purple
#A55AF4
ΔE00 5.50
Light Purple
#BF77F6
ΔE00 5.78
Periwinkle (survey)
#8E82FE
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A271F8 #C7F871
analogous
#7183F8 #A271F8 #E671F8
triadic
#A271F8 #F8A271 #71F8A2
tetradic
#A271F8 #F87183 #C7F871 #71F8E6
square
#A271F8 #F87183 #C7F871 #71F8E6
split-complementary
#A271F8 #F8E671 #83F871
monochromatic
#5A0BE3 #7C37F5 #A271F8 #C8ABFB #ECE2FE
Accessibility & contrast
On white
3.36
#A271F8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.25
#A271F8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A271F8
6.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A271F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A271F8 | 1.00 | 3.36 | 6.25 | 6.25 |
| #FFFFFF | 3.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#368DFD
Deuteranopia (green-blind)
#468BF5
Tritanopia (blue-blind)
#8F8CAA
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a271f8; /* rgb */ color: rgb(162, 113, 248); /* oklch */ color: oklch(66.0% 0.195 297.6);
Tailwind
colors: {
custom: {
50: '#c29bfb',
500: '#a271f8',
950: '#000000',
},
}SCSS
$custom: #a271f8; $custom-light: #c29bfb; $custom-dark: #000000;
JSON
{
"hex": "#a271f8",
"rgb": {
"r": 162,
"g": 113,
"b": 248
},
"hsl": {
"h": 261.778,
"s": 90.604,
"l": 70.784
},
"oklch": {
"l": 0.66023,
"c": 0.19457,
"h": 297.6
},
"luminance": 0.26269
}Semantic roles & 50–950 ramp
primary
#A271F8
secondary
#E7F5D0
accent
#E60092
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85