#A271F5#A271F5
#A271F5 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.8% C 0.191 H 298.1°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).
Color values
| HEX | #A271F5 |
|---|---|
| RGB | rgb(162, 113, 245) |
| HSL | hsl(262, 87%, 70%) |
| HSV | hsv(262, 54%, 96%) |
| CMYK | cmyk(33.9%, 53.9%, 0%, 3.9%) |
| CIE-LAB | lab(58.12, 46.54, -59.52) |
| CIE-LCH | lch(58.12, 75.56, 308.02°) |
| OKLab | oklab(65.84% 0.0899 -0.1684) |
| OKLCH | oklch(65.84% 0.191 298.1) |
| XYZ | xyz(37.2828, 26.0838, 89.4389) |
| Luminance | 0.2608 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 3.18
Mediumpurple
#9370DB
ΔE00 4.37
Easter Purple
#C071FE
ΔE00 5.32
Lighter Purple
#A55AF4
ΔE00 5.44
Light Purple
#BF77F6
ΔE00 5.68
Periwinkle (survey)
#8E82FE
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A271F5 #C4F571
analogous
#7182F5 #A271F5 #E471F5
triadic
#A271F5 #F5A271 #71F5A2
tetradic
#A271F5 #F57182 #C4F571 #71F5E4
square
#A271F5 #F57182 #C4F571 #71F5E4
split-complementary
#A271F5 #F5E471 #82F571
monochromatic
#5B10DC #7D38F1 #A271F5 #C7AAF9 #ECE2FD
Accessibility & contrast
On white
3.38
#A271F5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.22
#A271F5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A271F5
6.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A271F5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A271F5 | 1.00 | 3.38 | 6.22 | 6.22 |
| #FFFFFF | 3.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A8CF9
Deuteranopia (green-blind)
#498AF2
Tritanopia (blue-blind)
#908BA8
Achromatopsia (no color)
#8C8C8C
Design tokens & code
CSS
--color: #a271f5; /* rgb */ color: rgb(162, 113, 245); /* oklch */ color: oklch(65.8% 0.191 298.1);
Tailwind
colors: {
custom: {
50: '#c29bf9',
500: '#a271f5',
950: '#000000',
},
}SCSS
$custom: #a271f5; $custom-light: #c29bf9; $custom-dark: #000000;
JSON
{
"hex": "#a271f5",
"rgb": {
"r": 162,
"g": 113,
"b": 245
},
"hsl": {
"h": 262.273,
"s": 86.842,
"l": 70.196
},
"oklch": {
"l": 0.65838,
"c": 0.19094,
"h": 298.1
},
"luminance": 0.26084
}Semantic roles & 50–950 ramp
primary
#A271F5
secondary
#E6F3CF
accent
#E30290
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85