#A238C4#A238C4
#A238C4 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.217 H 316.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).
Color values
| HEX | #A238C4 |
|---|---|
| RGB | rgb(162, 56, 196) |
| HSL | hsl(285, 56%, 49%) |
| HSV | hsv(285, 71%, 77%) |
| CMYK | cmyk(17.3%, 71.4%, 0%, 23.1%) |
| CIE-LAB | lab(44.94, 63.07, -52.88) |
| CIE-LCH | lch(44.94, 82.30, 320.02°) |
| OKLab | oklab(55.31% 0.1574 -0.1487) |
| OKLCH | oklch(55.31% 0.217 316.6) |
| XYZ | xyz(26.2768, 14.4963, 53.6278) |
| Luminance | 0.1449 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.71
Purply
#983FB2
ΔE00 3.04
Barney
#AC1DB8
ΔE00 3.89
Vibrant Purple
#AD03DE
ΔE00 4.56
Medium Purple
#9E43A2
ΔE00 6.15
Violet (survey)
#9A0EEA
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A238C4 #5AC438
analogous
#5C38C4 #A238C4 #C438A0
triadic
#A238C4 #C4A238 #38C4A2
tetradic
#A238C4 #C45C38 #5AC438 #38A0C4
square
#A238C4 #C45C38 #5AC438 #38A0C4
split-complementary
#A238C4 #A0C438 #38C45C
monochromatic
#531D65 #7B2A94 #A238C4 #B966D3 #CF96E1
Accessibility & contrast
On white
5.39
#A238C4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#A238C4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A238C4
5.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A238C4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A238C4 | 1.00 | 5.39 | 3.90 | 5.39 |
| #FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#396DC1
Tritanopia (blue-blind)
#A0557B
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #a238c4; /* rgb */ color: rgb(162, 56, 196); /* oklch */ color: oklch(55.3% 0.217 316.6);
Tailwind
colors: {
custom: {
50: '#c278d7',
500: '#a238c4',
950: '#000000',
},
}SCSS
$custom: #a238c4; $custom-light: #c278d7; $custom-dark: #000000;
JSON
{
"hex": "#a238c4",
"rgb": {
"r": 162,
"g": 56,
"b": 196
},
"hsl": {
"h": 285.429,
"s": 55.556,
"l": 49.412
},
"oklch": {
"l": 0.55311,
"c": 0.21653,
"h": 316.6
},
"luminance": 0.14495
}Semantic roles & 50–950 ramp
primary
#A238C4
secondary
#9BCC8C
accent
#DF496D
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83