#A240B1#A240B1
#A240B1 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.189 H 322.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).
Color values
| HEX | #A240B1 |
|---|---|
| RGB | rgb(162, 64, 177) |
| HSL | hsl(292, 47%, 47%) |
| HSV | hsv(292, 64%, 69%) |
| CMYK | cmyk(8.5%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(44.97, 56.11, -41.71) |
| CIE-LCH | lch(44.97, 69.92, 323.38°) |
| OKLab | oklab(54.97% 0.1494 -0.1161) |
| OKLCH | oklch(54.97% 0.189 322.1) |
| XYZ | xyz(24.6687, 14.5238, 43.0904) |
| Luminance | 0.1452 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.23
Medium Purple
#9E43A2
ΔE00 2.75
Ugly Purple
#A442A0
ΔE00 3.54
Barney
#AC1DB8
ΔE00 4.23
Darkorchid
#9932CC
ΔE00 5.88
Warm Purple
#952E8F
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A240B1 #4FB140
analogous
#6940B1 #A240B1 #B14088
triadic
#A240B1 #B1A240 #40B1A2
tetradic
#A240B1 #B16940 #4FB140 #4088B1
square
#A240B1 #B16940 #4FB140 #4088B1
split-complementary
#A240B1 #88B140 #40B169
monochromatic
#501F57 #793084 #A240B1 #BB66C8 #CF93D8
Accessibility & contrast
On white
5.38
#A240B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.90
#A240B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A240B1
5.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A240B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A240B1 | 1.00 | 5.38 | 3.90 | 5.38 |
| #FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#A45273
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #a240b1; /* rgb */ color: rgb(162, 64, 177); /* oklch */ color: oklch(55.0% 0.189 322.1);
Tailwind
colors: {
custom: {
50: '#c17cc9',
500: '#a240b1',
950: '#000000',
},
}SCSS
$custom: #a240b1; $custom-light: #c17cc9; $custom-dark: #000000;
JSON
{
"hex": "#a240b1",
"rgb": {
"r": 162,
"g": 64,
"b": 177
},
"hsl": {
"h": 292.035,
"s": 46.888,
"l": 47.255
},
"oklch": {
"l": 0.54974,
"c": 0.18921,
"h": 322.1
},
"luminance": 0.14522
}Semantic roles & 50–950 ramp
primary
#A240B1
secondary
#91C389
accent
#D75163
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82