#A740B2#A740B2
#A740B2 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.193 H 323.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #A740B2 |
|---|---|
| RGB | rgb(167, 64, 178) |
| HSL | hsl(294, 47%, 47%) |
| HSV | hsv(294, 64%, 70%) |
| CMYK | cmyk(6.2%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(45.77, 57.52, -40.99) |
| CIE-LCH | lch(45.77, 70.63, 324.52°) |
| OKLab | oklab(55.72% 0.1553 -0.1139) |
| OKLCH | oklch(55.72% 0.193 323.7) |
| XYZ | xyz(25.8049, 15.0981, 43.6659) |
| Luminance | 0.1510 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.95
Purply
#983FB2
ΔE00 3.21
Ugly Purple
#A442A0
ΔE00 3.33
Barney
#AC1DB8
ΔE00 4.38
Purpley Pink
#C83CB9
ΔE00 6.39
Darkorchid
#9932CC
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A740B2 #4BB240
analogous
#6E40B2 #A740B2 #B24084
triadic
#A740B2 #B2A740 #40B2A7
tetradic
#A740B2 #B26E40 #4BB240 #4084B2
square
#A740B2 #B26E40 #4BB240 #4084B2
split-complementary
#A740B2 #84B240 #40B26E
monochromatic
#532058 #7D3085 #A740B2 #BF67C8 #D294D8
Accessibility & contrast
On white
5.22
#A740B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#A740B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A740B2
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A740B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A740B2 | 1.00 | 5.22 | 4.02 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#5271AF
Tritanopia (blue-blind)
#AA5173
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a740b2; /* rgb */ color: rgb(167, 64, 178); /* oklch */ color: oklch(55.7% 0.193 323.7);
Tailwind
colors: {
custom: {
50: '#c47cc9',
500: '#a740b2',
950: '#000000',
},
}SCSS
$custom: #a740b2; $custom-light: #c47cc9; $custom-dark: #000000;
JSON
{
"hex": "#a740b2",
"rgb": {
"r": 167,
"g": 64,
"b": 178
},
"hsl": {
"h": 294.211,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.55715,
"c": 0.19256,
"h": 323.7
},
"luminance": 0.15097
}Semantic roles & 50–950 ramp
primary
#A740B2
secondary
#8FC48A
accent
#D7515E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82