#A240B2#A240B2
#A240B2 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.0% C 0.190 H 321.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #A240B2 |
|---|---|
| RGB | rgb(162, 64, 178) |
| HSL | hsl(292, 47%, 47%) |
| HSV | hsv(292, 64%, 70%) |
| CMYK | cmyk(9%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(45.03, 56.30, -42.21) |
| CIE-LCH | lch(45.03, 70.37, 323.14°) |
| OKLab | oklab(55.03% 0.1494 -0.1176) |
| OKLCH | oklch(55.03% 0.19 321.8) |
| XYZ | xyz(24.7687, 14.5638, 43.6173) |
| Luminance | 0.1456 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.16
Medium Purple
#9E43A2
ΔE00 2.92
Ugly Purple
#A442A0
ΔE00 3.71
Barney
#AC1DB8
ΔE00 4.21
Darkorchid
#9932CC
ΔE00 5.73
Warm Purple
#952E8F
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A240B2 #50B240
analogous
#6940B2 #A240B2 #B24089
triadic
#A240B2 #B2A240 #40B2A2
tetradic
#A240B2 #B26940 #50B240 #4089B2
square
#A240B2 #B26940 #50B240 #4089B2
split-complementary
#A240B2 #89B240 #40B269
monochromatic
#502058 #793085 #A240B2 #BB67C8 #CF94D8
Accessibility & contrast
On white
5.37
#A240B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#A240B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A240B2
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A240B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A240B2 | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#4E6EAF
Tritanopia (blue-blind)
#A45273
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a240b2; /* rgb */ color: rgb(162, 64, 178); /* oklch */ color: oklch(55.0% 0.190 321.8);
Tailwind
colors: {
custom: {
50: '#c17cc9',
500: '#a240b2',
950: '#000000',
},
}SCSS
$custom: #a240b2; $custom-light: #c17cc9; $custom-dark: #000000;
JSON
{
"hex": "#a240b2",
"rgb": {
"r": 162,
"g": 64,
"b": 178
},
"hsl": {
"h": 291.579,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.55032,
"c": 0.19011,
"h": 321.8
},
"luminance": 0.14563
}Semantic roles & 50–950 ramp
primary
#A240B2
secondary
#92C48A
accent
#D75164
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82