#A940C7#A940C7
#A940C7 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.212 H 317.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #A940C7 |
|---|---|
| RGB | rgb(169, 64, 199) |
| HSL | hsl(287, 55%, 52%) |
| HSV | hsv(287, 68%, 78%) |
| CMYK | cmyk(15.1%, 67.8%, 0%, 22%) |
| CIE-LAB | lab(47.27, 61.96, -50.82) |
| CIE-LCH | lch(47.27, 80.13, 320.64°) |
| OKLab | oklab(57.25% 0.1574 -0.1425) |
| OKLCH | oklch(57.25% 0.212 317.8) |
| XYZ | xyz(28.5029, 16.2265, 55.6524) |
| Luminance | 0.1623 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.27
Darkorchid
#9932CC
ΔE00 4.70
Barney
#AC1DB8
ΔE00 5.19
Vibrant Purple
#AD03DE
ΔE00 5.69
Medium Purple
#9E43A2
ΔE00 6.28
Lightish Purple
#A552E6
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A940C7 #5EC740
analogous
#6640C7 #A940C7 #C740A2
triadic
#A940C7 #C7A940 #40C7A9
tetradic
#A940C7 #C76640 #5EC740 #40A2C7
square
#A940C7 #C76640 #5EC740 #40A2C7
split-complementary
#A940C7 #A2C740 #40C766
monochromatic
#5C206D #842E9C #A940C7 #BE6FD5 #D49FE3
Accessibility & contrast
On white
4.95
#A940C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#A940C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A940C7
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A940C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A940C7 | 1.00 | 4.95 | 4.24 | 4.95 |
| #FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#4573C4
Tritanopia (blue-blind)
#A8597F
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #a940c7; /* rgb */ color: rgb(169, 64, 199); /* oklch */ color: oklch(57.2% 0.212 317.8);
Tailwind
colors: {
custom: {
50: '#c67dd9',
500: '#a940c7',
950: '#000000',
},
}SCSS
$custom: #a940c7; $custom-light: #c67dd9; $custom-dark: #000000;
JSON
{
"hex": "#a940c7",
"rgb": {
"r": 169,
"g": 64,
"b": 199
},
"hsl": {
"h": 286.667,
"s": 54.656,
"l": 51.569
},
"oklch": {
"l": 0.57246,
"c": 0.21233,
"h": 317.8
},
"luminance": 0.16225
}Semantic roles & 50–950 ramp
primary
#A940C7
secondary
#A1CF94
accent
#DE4A6B
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A15
muted
#827C83