#A840B2#A840B2
#A840B2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.9% C 0.193 H 324.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).
Color values
| HEX | #A840B2 |
|---|---|
| RGB | rgb(168, 64, 178) |
| HSL | hsl(295, 47%, 47%) |
| HSV | hsv(295, 64%, 70%) |
| CMYK | cmyk(5.6%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(45.92, 57.76, -40.75) |
| CIE-LCH | lch(45.92, 70.69, 324.80°) |
| OKLab | oklab(55.85% 0.1564 -0.1132) |
| OKLCH | oklch(55.85% 0.193 324.1) |
| XYZ | xyz(26.0170, 15.2075, 43.6758) |
| Luminance | 0.1521 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 3.00
Ugly Purple
#A442A0
ΔE00 3.29
Purply
#983FB2
ΔE00 3.42
Barney
#AC1DB8
ΔE00 4.44
Purpley Pink
#C83CB9
ΔE00 6.19
Darkorchid
#9932CC
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A840B2 #4AB240
analogous
#6F40B2 #A840B2 #B24083
triadic
#A840B2 #B2A840 #40B2A8
tetradic
#A840B2 #B26F40 #4AB240 #4083B2
square
#A840B2 #B26F40 #4AB240 #4083B2
split-complementary
#A840B2 #83B240 #40B26F
monochromatic
#532058 #7E3085 #A840B2 #C067C8 #D294D8
Accessibility & contrast
On white
5.20
#A840B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.04
#A840B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A840B2
5.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A840B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A840B2 | 1.00 | 5.20 | 4.04 | 5.20 |
| #FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2965B5
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#AB5173
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #a840b2; /* rgb */ color: rgb(168, 64, 178); /* oklch */ color: oklch(55.9% 0.193 324.1);
Tailwind
colors: {
custom: {
50: '#c57cc9',
500: '#a840b2',
950: '#000000',
},
}SCSS
$custom: #a840b2; $custom-light: #c57cc9; $custom-dark: #000000;
JSON
{
"hex": "#a840b2",
"rgb": {
"r": 168,
"g": 64,
"b": 178
},
"hsl": {
"h": 294.737,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.55853,
"c": 0.19307,
"h": 324.1
},
"luminance": 0.15206
}Semantic roles & 50–950 ramp
primary
#A840B2
secondary
#8FC48A
accent
#D7515D
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82