#A257BA#A257BA
#A257BA is a mid, vivid purple. Relative luminance 0.180; OKLCH L 58.5% C 0.163 H 317.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #A257BA |
|---|---|
| RGB | rgb(162, 87, 186) |
| HSL | hsl(285, 42%, 54%) |
| HSV | hsv(285, 53%, 73%) |
| CMYK | cmyk(12.9%, 53.2%, 0%, 27.1%) |
| CIE-LAB | lab(49.55, 46.83, -39.72) |
| CIE-LCH | lch(49.55, 61.41, 319.70°) |
| OKLab | oklab(58.47% 0.1202 -0.1105) |
| OKLCH | oklch(58.47% 0.163 317.4) |
| XYZ | xyz(27.1702, 18.0439, 48.4964) |
| Luminance | 0.1804 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.79
Deep Lavender
#8D5EB7
ΔE00 4.66
Mediumorchid
#BA55D3
ΔE00 5.42
Medium Purple
#9E43A2
ΔE00 6.32
Purply
#983FB2
ΔE00 6.36
Ugly Purple
#A442A0
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A257BA #6FBA57
analogous
#7057BA #A257BA #BA57A0
triadic
#A257BA #BAA257 #57BAA2
tetradic
#A257BA #BA7057 #6FBA57 #57A0BA
square
#A257BA #BA7057 #6FBA57 #57A0BA
split-complementary
#A257BA #A0BA57 #57BA70
monochromatic
#5C2C6B #813E96 #A257BA #BA82CC #D2AEDE
Accessibility & contrast
On white
4.56
#A257BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.61
#A257BA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A257BA
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A257BA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A257BA | 1.00 | 4.56 | 4.61 | 4.61 |
| #FFFFFF | 4.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4271BD
Deuteranopia (green-blind)
#5A78B7
Tritanopia (blue-blind)
#A16680
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #a257ba; /* rgb */ color: rgb(162, 87, 186); /* oklch */ color: oklch(58.5% 0.163 317.4);
Tailwind
colors: {
custom: {
50: '#c089cf',
500: '#a257ba',
950: '#000000',
},
}SCSS
$custom: #a257ba; $custom-light: #c089cf; $custom-dark: #000000;
JSON
{
"hex": "#a257ba",
"rgb": {
"r": 162,
"g": 87,
"b": 186
},
"hsl": {
"h": 285.455,
"s": 41.772,
"l": 53.529
},
"oklch": {
"l": 0.5847,
"c": 0.1633,
"h": 317.4
},
"luminance": 0.18043
}Semantic roles & 50–950 ramp
primary
#A257BA
secondary
#ABCCA1
accent
#D25674
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#120C14
muted
#817D82