#A238AB#A238AB
#A238AB is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.8% C 0.195 H 324.5°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #A238AB |
|---|---|
| RGB | rgb(162, 56, 171) |
| HSL | hsl(295, 51%, 45%) |
| HSV | hsv(295, 67%, 67%) |
| CMYK | cmyk(5.3%, 67.3%, 0%, 32.9%) |
| CIE-LAB | lab(43.44, 58.36, -40.61) |
| CIE-LCH | lch(43.44, 71.10, 325.17°) |
| OKLab | oklab(53.75% 0.1585 -0.1129) |
| OKLCH | oklch(53.75% 0.195 324.5) |
| XYZ | xyz(23.6645, 13.4514, 39.8701) |
| Luminance | 0.1345 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.56
Purply
#983FB2
ΔE00 2.70
Ugly Purple
#A442A0
ΔE00 3.25
Barney
#AC1DB8
ΔE00 3.37
Warm Purple
#952E8F
ΔE00 5.45
Barney Purple
#A00498
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A238AB #41AB38
analogous
#6838AB #A238AB #AB387B
triadic
#A238AB #ABA238 #38ABA2
tetradic
#A238AB #AB6838 #41AB38 #387BAB
square
#A238AB #AB6838 #41AB38 #387BAB
split-complementary
#A238AB #7BAB38 #38AB68
monochromatic
#4B1A4F #76297D #A238AB #BF58C8 #D186D7
Accessibility & contrast
On white
5.69
#A238AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#A238AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A238AB
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A238AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A238AB | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E5EAE
Deuteranopia (green-blind)
#4D6BA8
Tritanopia (blue-blind)
#A54A6D
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #a238ab; /* rgb */ color: rgb(162, 56, 171); /* oklch */ color: oklch(53.8% 0.195 324.5);
Tailwind
colors: {
custom: {
50: '#c177c4',
500: '#a238ab',
950: '#000000',
},
}SCSS
$custom: #a238ab; $custom-light: #c177c4; $custom-dark: #000000;
JSON
{
"hex": "#a238ab",
"rgb": {
"r": 162,
"g": 56,
"b": 171
},
"hsl": {
"h": 295.304,
"s": 50.661,
"l": 44.51
},
"oklch": {
"l": 0.53754,
"c": 0.19456,
"h": 324.5
},
"luminance": 0.1345
}Semantic roles & 50–950 ramp
primary
#A238AB
secondary
#83C17D
accent
#DA4E59
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82