#A257E6#A257E6
#A257E6 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.211 H 305.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #A257E6 |
|---|---|
| RGB | rgb(162, 87, 230) |
| HSL | hsl(271, 74%, 62%) |
| HSV | hsv(271, 62%, 90%) |
| CMYK | cmyk(29.6%, 62.2%, 0%, 9.8%) |
| CIE-LAB | lab(52.08, 56.53, -60.84) |
| CIE-LCH | lch(52.08, 83.05, 312.90°) |
| OKLab | oklab(61.13% 0.1211 -0.1722) |
| OKLCH | oklch(61.13% 0.211 305.1) |
| XYZ | xyz(32.5883, 20.2111, 77.0319) |
| Luminance | 0.2021 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 1.09
Lighter Purple
#A55AF4
ΔE00 2.24
Purpley
#8756E4
ΔE00 5.05
Mediumorchid
#BA55D3
ΔE00 6.06
Amethyst
#9B5FC0
ΔE00 6.23
Mediumpurple
#9370DB
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A257E6 #9BE657
analogous
#5B57E6 #A257E6 #E657E2
triadic
#A257E6 #E6A257 #57E6A2
tetradic
#A257E6 #E65B57 #9BE657 #57E2E6
square
#A257E6 #E65B57 #9BE657 #57E2E6
split-complementary
#A257E6 #E2E657 #57E65B
monochromatic
#6519A9 #8522DE #A257E6 #BF8CEE #DDC2F6
Accessibility & contrast
On white
4.16
#A257E6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#A257E6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A257E6
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A257E6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A257E6 | 1.00 | 4.16 | 5.04 | 5.04 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AEA
Deuteranopia (green-blind)
#347CE3
Tritanopia (blue-blind)
#967597
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #a257e6; /* rgb */ color: rgb(162, 87, 230); /* oklch */ color: oklch(61.1% 0.211 305.1);
Tailwind
colors: {
custom: {
50: '#c28aef',
500: '#a257e6',
950: '#000000',
},
}SCSS
$custom: #a257e6; $custom-light: #c28aef; $custom-dark: #000000;
JSON
{
"hex": "#a257e6",
"rgb": {
"r": 162,
"g": 87,
"b": 230
},
"hsl": {
"h": 271.469,
"s": 74.093,
"l": 62.157
},
"oklch": {
"l": 0.61128,
"c": 0.21056,
"h": 305.1
},
"luminance": 0.20211
}Semantic roles & 50–950 ramp
primary
#A257E6
secondary
#CBE7B2
accent
#D60F6E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84