#A338B0#A338B0
#A338B0 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 54.2% C 0.199 H 323.2°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #A338B0 |
|---|---|
| RGB | rgb(163, 56, 176) |
| HSL | hsl(294, 52%, 45%) |
| HSV | hsv(294, 68%, 69%) |
| CMYK | cmyk(7.4%, 68.2%, 0%, 31%) |
| CIE-LAB | lab(43.87, 59.50, -42.86) |
| CIE-LCH | lch(43.87, 73.33, 324.23°) |
| OKLab | oklab(54.19% 0.1596 -0.1194) |
| OKLCH | oklch(54.19% 0.199 323.2) |
| XYZ | xyz(24.3542, 13.7509, 42.4373) |
| Luminance | 0.1375 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.31
Barney
#AC1DB8
ΔE00 3.01
Medium Purple
#9E43A2
ΔE00 3.15
Ugly Purple
#A442A0
ΔE00 3.85
Darkorchid
#9932CC
ΔE00 5.56
Warm Purple
#952E8F
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A338B0 #45B038
analogous
#6738B0 #A338B0 #B03881
triadic
#A338B0 #B0A338 #38B0A3
tetradic
#A338B0 #B06738 #45B038 #3881B0
square
#A338B0 #B06738 #45B038 #3881B0
split-complementary
#A338B0 #81B038 #38B067
monochromatic
#4D1A53 #782982 #A338B0 #BF5BCB #D189D9
Accessibility & contrast
On white
5.60
#A338B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.75
#A338B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A338B0
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A338B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A338B0 | 1.00 | 5.60 | 3.75 | 5.60 |
| #FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1760B3
Deuteranopia (green-blind)
#4B6CAD
Tritanopia (blue-blind)
#A64C70
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #a338b0; /* rgb */ color: rgb(163, 56, 176); /* oklch */ color: oklch(54.2% 0.199 323.2);
Tailwind
colors: {
custom: {
50: '#c278c8',
500: '#a338b0',
950: '#000000',
},
}SCSS
$custom: #a338b0; $custom-light: #c278c8; $custom-dark: #000000;
JSON
{
"hex": "#a338b0",
"rgb": {
"r": 163,
"g": 56,
"b": 176
},
"hsl": {
"h": 293.5,
"s": 51.724,
"l": 45.49
},
"oklch": {
"l": 0.54192,
"c": 0.19934,
"h": 323.2
},
"luminance": 0.13749
}Semantic roles & 50–950 ramp
primary
#A338B0
secondary
#87C480
accent
#DB4D5C
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130913
muted
#827B82