#A238D4#A238D4
#A238D4 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.231 H 312.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #A238D4 |
|---|---|
| RGB | rgb(162, 56, 212) |
| HSL | hsl(281, 64%, 53%) |
| HSV | hsv(281, 74%, 83%) |
| CMYK | cmyk(23.6%, 73.6%, 0%, 16.9%) |
| CIE-LAB | lab(45.99, 66.25, -60.42) |
| CIE-LCH | lch(45.99, 89.66, 317.64°) |
| OKLab | oklab(56.4% 0.1554 -0.1708) |
| OKLCH | oklch(56.4% 0.231 312.3) |
| XYZ | xyz(28.1960, 15.2640, 63.7355) |
| Luminance | 0.1526 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.48
Vibrant Purple
#AD03DE
ΔE00 3.62
Violet (survey)
#9A0EEA
ΔE00 5.18
Purply
#983FB2
ΔE00 5.22
Bright Violet
#AD0AFD
ΔE00 5.33
Electric Purple
#AA23FF
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A238D4 #6AD438
analogous
#5438D4 #A238D4 #D438B8
triadic
#A238D4 #D4A238 #38D4A2
tetradic
#A238D4 #D45438 #6AD438 #38B8D4
square
#A238D4 #D45438 #6AD438 #38B8D4
split-complementary
#A238D4 #B8D438 #38D454
monochromatic
#5A1A78 #7F25AA #A238D4 #BA6ADF #D19DEA
Accessibility & contrast
On white
5.18
#A238D4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#A238D4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A238D4
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A238D4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A238D4 | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#236FD1
Tritanopia (blue-blind)
#9C5B84
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #a238d4; /* rgb */ color: rgb(162, 56, 212); /* oklch */ color: oklch(56.4% 0.231 312.3);
Tailwind
colors: {
custom: {
50: '#c279e2',
500: '#a238d4',
950: '#000000',
},
}SCSS
$custom: #a238d4; $custom-light: #c279e2; $custom-dark: #000000;
JSON
{
"hex": "#a238d4",
"rgb": {
"r": 162,
"g": 56,
"b": 212
},
"hsl": {
"h": 280.769,
"s": 64.463,
"l": 52.549
},
"oklch": {
"l": 0.56397,
"c": 0.23095,
"h": 312.3
},
"luminance": 0.15263
}Semantic roles & 50–950 ramp
primary
#A238D4
secondary
#A8D692
accent
#E74076
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83