#A257F2#A257F2
#A257F2 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.9% C 0.223 H 302.6°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #A257F2 |
|---|---|
| RGB | rgb(162, 87, 242) |
| HSL | hsl(269, 86%, 65%) |
| HSV | hsv(269, 64%, 95%) |
| CMYK | cmyk(33.1%, 64%, 0%, 5.1%) |
| CIE-LAB | lab(52.85, 59.32, -66.32) |
| CIE-LCH | lch(52.85, 88.98, 311.81°) |
| OKLab | oklab(61.93% 0.1203 -0.1884) |
| OKLCH | oklch(61.93% 0.223 302.6) |
| XYZ | xyz(34.3318, 20.9085, 86.2142) |
| Luminance | 0.2091 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 0.99
Lightish Purple
#A552E6
ΔE00 2.25
Purpley
#8756E4
ΔE00 5.15
Light Urple
#B36FF6
ΔE00 6.66
Electric Purple
#AA23FF
ΔE00 7.04
Mediumpurple
#9370DB
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A257F2 #A7F257
analogous
#575AF2 #A257F2 #EF57F2
triadic
#A257F2 #F2A257 #57F2A2
tetradic
#A257F2 #F2575A #A7F257 #57F2EF
square
#A257F2 #F2575A #A7F257 #57F2EF
split-complementary
#A257F2 #F2EF57 #5AF257
monochromatic
#640FC0 #831EEE #A257F2 #C190F6 #E1C9FB
Accessibility & contrast
On white
4.05
#A257F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.18
#A257F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A257F2
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A257F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A257F2 | 1.00 | 4.05 | 5.18 | 5.18 |
| #FFFFFF | 4.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#1D7EEF
Tritanopia (blue-blind)
#92799D
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #a257f2; /* rgb */ color: rgb(162, 87, 242); /* oklch */ color: oklch(61.9% 0.223 302.6);
Tailwind
colors: {
custom: {
50: '#c38bf7',
500: '#a257f2',
950: '#000000',
},
}SCSS
$custom: #a257f2; $custom-light: #c38bf7; $custom-dark: #000000;
JSON
{
"hex": "#a257f2",
"rgb": {
"r": 162,
"g": 87,
"b": 242
},
"hsl": {
"h": 269.032,
"s": 85.635,
"l": 64.51
},
"oklch": {
"l": 0.61934,
"c": 0.22348,
"h": 302.6
},
"luminance": 0.20909
}Semantic roles & 50–950 ramp
primary
#A257F2
secondary
#D3EDB8
accent
#E20376
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85