#A254E5#A254E5
#A254E5 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.7% C 0.214 H 305.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #A254E5 |
|---|---|
| RGB | rgb(162, 84, 229) |
| HSL | hsl(272, 74%, 61%) |
| HSV | hsv(272, 63%, 90%) |
| CMYK | cmyk(29.3%, 63.3%, 0%, 10.2%) |
| CIE-LAB | lab(51.47, 57.77, -61.25) |
| CIE-LCH | lch(51.47, 84.19, 313.32°) |
| OKLab | oklab(60.67% 0.1246 -0.1734) |
| OKLCH | oklch(60.67% 0.214 305.7) |
| XYZ | xyz(32.2104, 19.6794, 76.2152) |
| Luminance | 0.1968 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 0.58
Lighter Purple
#A55AF4
ΔE00 2.76
Purpley
#8756E4
ΔE00 4.93
Mediumorchid
#BA55D3
ΔE00 6.06
Amethyst
#9B5FC0
ΔE00 6.26
Electric Purple
#AA23FF
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A254E5 #97E554
analogous
#5A54E5 #A254E5 #E554DF
triadic
#A254E5 #E5A254 #54E5A2
tetradic
#A254E5 #E55A54 #97E554 #54DFE5
square
#A254E5 #E55A54 #97E554 #54DFE5
split-complementary
#A254E5 #DFE554 #54E55A
monochromatic
#6519A5 #8521DB #A254E5 #BF89ED #DCBEF5
Accessibility & contrast
On white
4.25
#A254E5 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#A254E5 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A254E5
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A254E5 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A254E5 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#317BE2
Tritanopia (blue-blind)
#967295
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #a254e5; /* rgb */ color: rgb(162, 84, 229); /* oklch */ color: oklch(60.7% 0.214 305.7);
Tailwind
colors: {
custom: {
50: '#c288ee',
500: '#a254e5',
950: '#000000',
},
}SCSS
$custom: #a254e5; $custom-light: #c288ee; $custom-dark: #000000;
JSON
{
"hex": "#a254e5",
"rgb": {
"r": 162,
"g": 84,
"b": 229
},
"hsl": {
"h": 272.276,
"s": 73.604,
"l": 61.373
},
"oklch": {
"l": 0.60672,
"c": 0.21353,
"h": 305.7
},
"luminance": 0.19679
}Semantic roles & 50–950 ramp
primary
#A254E5
secondary
#C8E6AF
accent
#D6106B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84