#A338A2#A338A2
#A338A2 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.4% C 0.187 H 328.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).
Color values
| HEX | #A338A2 |
|---|---|
| RGB | rgb(163, 56, 162) |
| HSL | hsl(301, 49%, 43%) |
| HSV | hsv(301, 66%, 64%) |
| CMYK | cmyk(0%, 65.6%, 0.6%, 36.1%) |
| CIE-LAB | lab(43.10, 57.01, -35.77) |
| CIE-LCH | lch(43.10, 67.31, 327.89°) |
| OKLab | oklab(53.39% 0.1593 -0.0988) |
| OKLCH | oklch(53.39% 0.187 328.2) |
| XYZ | xyz(23.0397, 13.2251, 35.5146) |
| Luminance | 0.1322 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.00
Ugly Purple
#A442A0
ΔE00 2.12
Purply
#983FB2
ΔE00 4.23
Warm Purple
#952E8F
ΔE00 4.40
Barney
#AC1DB8
ΔE00 4.50
Barney Purple
#A00498
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A338A2 #38A339
analogous
#6E38A3 #A338A2 #A3386C
triadic
#A338A2 #A2A338 #38A2A3
tetradic
#A338A2 #A36E38 #38A339 #386CA3
square
#A338A2 #A36E38 #38A339 #386CA3
split-complementary
#A338A2 #6CA338 #38A36E
monochromatic
#481947 #752875 #A338A2 #C454C3 #D482D3
Accessibility & contrast
On white
5.76
#A338A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#A338A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A338A2
5.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A338A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A338A2 | 1.00 | 5.76 | 3.64 | 5.76 |
| #FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A5DA5
Deuteranopia (green-blind)
#536B9F
Tritanopia (blue-blind)
#A84668
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #a338a2; /* rgb */ color: rgb(163, 56, 162); /* oklch */ color: oklch(53.4% 0.187 328.2);
Tailwind
colors: {
custom: {
50: '#c177be',
500: '#a338a2',
950: '#000000',
},
}SCSS
$custom: #a338a2; $custom-light: #c177be; $custom-dark: #000000;
JSON
{
"hex": "#a338a2",
"rgb": {
"r": 163,
"g": 56,
"b": 162
},
"hsl": {
"h": 300.561,
"s": 48.858,
"l": 42.941
},
"oklch": {
"l": 0.53385,
"c": 0.18748,
"h": 328.2
},
"luminance": 0.13224
}Semantic roles & 50–950 ramp
primary
#A338A2
secondary
#79BD7A
accent
#D8514F
background
#FCF7FB
surface
#F8EEF7
border
#D1C9D0
text
#130912
muted
#827B81