#A238C9#A238C9
#A238C9 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.221 H 315.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).
Color values
| HEX | #A238C9 |
|---|---|
| RGB | rgb(162, 56, 201) |
| HSL | hsl(284, 57%, 50%) |
| HSV | hsv(284, 72%, 79%) |
| CMYK | cmyk(19.4%, 72.1%, 0%, 21.2%) |
| CIE-LAB | lab(45.26, 64.05, -55.26) |
| CIE-LCH | lch(45.26, 84.59, 319.21°) |
| OKLab | oklab(55.64% 0.1569 -0.1557) |
| OKLCH | oklch(55.64% 0.221 315.2) |
| XYZ | xyz(26.8554, 14.7278, 56.6751) |
| Luminance | 0.1473 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.36
Purply
#983FB2
ΔE00 3.70
Vibrant Purple
#AD03DE
ΔE00 4.13
Barney
#AC1DB8
ΔE00 4.46
Violet (survey)
#9A0EEA
ΔE00 6.12
Blueviolet
#8A2BE2
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A238C9 #5FC938
analogous
#5938C9 #A238C9 #C938A7
triadic
#A238C9 #C9A238 #38C9A2
tetradic
#A238C9 #C95938 #5FC938 #38A7C9
square
#A238C9 #C95938 #5FC938 #38A7C9
split-complementary
#A238C9 #A7C938 #38C959
monochromatic
#551D6A #7C2A9A #A238C9 #B868D6 #CF98E3
Accessibility & contrast
On white
5.32
#A238C9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#A238C9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A238C9
5.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A238C9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A238C9 | 1.00 | 5.32 | 3.95 | 5.32 |
| #FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#336EC6
Tritanopia (blue-blind)
#9F577D
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a238c9; /* rgb */ color: rgb(162, 56, 201); /* oklch */ color: oklch(55.6% 0.221 315.2);
Tailwind
colors: {
custom: {
50: '#c278da',
500: '#a238c9',
950: '#000000',
},
}SCSS
$custom: #a238c9; $custom-light: #c278da; $custom-dark: #000000;
JSON
{
"hex": "#a238c9",
"rgb": {
"r": 162,
"g": 56,
"b": 201
},
"hsl": {
"h": 283.862,
"s": 57.312,
"l": 50.392
},
"oklch": {
"l": 0.55643,
"c": 0.22102,
"h": 315.2
},
"luminance": 0.14727
}Semantic roles & 50–950 ramp
primary
#A238C9
secondary
#9FCF8E
accent
#E14770
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83