#A340B2#A340B2
#A340B2 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.2% C 0.191 H 322.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).
Color values
| HEX | #A340B2 |
|---|---|
| RGB | rgb(163, 64, 178) |
| HSL | hsl(292, 47%, 47%) |
| HSV | hsv(292, 64%, 70%) |
| CMYK | cmyk(8.4%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(45.18, 56.55, -41.97) |
| CIE-LCH | lch(45.18, 70.42, 323.42°) |
| OKLab | oklab(55.17% 0.1506 -0.1168) |
| OKLCH | oklch(55.17% 0.191 322.2) |
| XYZ | xyz(24.9727, 14.6690, 43.6269) |
| Luminance | 0.1467 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.37
Medium Purple
#9E43A2
ΔE00 2.90
Ugly Purple
#A442A0
ΔE00 3.62
Barney
#AC1DB8
ΔE00 4.22
Darkorchid
#9932CC
ΔE00 5.87
Warm Purple
#952E8F
ΔE00 7.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A340B2 #4FB240
analogous
#6A40B2 #A340B2 #B24088
triadic
#A340B2 #B2A340 #40B2A3
tetradic
#A340B2 #B26A40 #4FB240 #4088B2
square
#A340B2 #B26A40 #4FB240 #4088B2
split-complementary
#A340B2 #88B240 #40B26A
monochromatic
#512058 #7A3085 #A340B2 #BB67C8 #CF94D8
Accessibility & contrast
On white
5.34
#A340B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#A340B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A340B2
5.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A340B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A340B2 | 1.00 | 5.34 | 3.93 | 5.34 |
| #FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#4E6FAF
Tritanopia (blue-blind)
#A55273
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a340b2; /* rgb */ color: rgb(163, 64, 178); /* oklch */ color: oklch(55.2% 0.191 322.2);
Tailwind
colors: {
custom: {
50: '#c17cc9',
500: '#a340b2',
950: '#000000',
},
}SCSS
$custom: #a340b2; $custom-light: #c17cc9; $custom-dark: #000000;
JSON
{
"hex": "#a340b2",
"rgb": {
"r": 163,
"g": 64,
"b": 178
},
"hsl": {
"h": 292.105,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.55168,
"c": 0.1906,
"h": 322.2
},
"luminance": 0.14668
}Semantic roles & 50–950 ramp
primary
#A340B2
secondary
#91C48A
accent
#D75163
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82