#A940C8#A940C8
#A940C8 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.213 H 317.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #A940C8 |
|---|---|
| RGB | rgb(169, 64, 200) |
| HSL | hsl(286, 55%, 52%) |
| HSV | hsv(286, 68%, 78%) |
| CMYK | cmyk(15.5%, 68%, 0%, 21.6%) |
| CIE-LAB | lab(47.33, 62.15, -51.30) |
| CIE-LCH | lch(47.33, 80.59, 320.46°) |
| OKLab | oklab(57.31% 0.1573 -0.1439) |
| OKLCH | oklch(57.31% 0.213 317.5) |
| XYZ | xyz(28.6194, 16.2731, 56.2659) |
| Luminance | 0.1627 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.37
Darkorchid
#9932CC
ΔE00 4.65
Barney
#AC1DB8
ΔE00 5.28
Vibrant Purple
#AD03DE
ΔE00 5.61
Lightish Purple
#A552E6
ΔE00 6.21
Mediumorchid
#BA55D3
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A940C8 #5FC840
analogous
#6540C8 #A940C8 #C840A3
triadic
#A940C8 #C8A940 #40C8A9
tetradic
#A940C8 #C86540 #5FC840 #40A3C8
square
#A940C8 #C86540 #5FC840 #40A3C8
split-complementary
#A940C8 #A3C840 #40C865
monochromatic
#5C206E #842D9D #A940C8 #BE70D6 #D49FE3
Accessibility & contrast
On white
4.94
#A940C8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#A940C8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A940C8
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A940C8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A940C8 | 1.00 | 4.94 | 4.25 | 4.94 |
| #FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#4473C5
Tritanopia (blue-blind)
#A85A7F
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #a940c8; /* rgb */ color: rgb(169, 64, 200); /* oklch */ color: oklch(57.3% 0.213 317.5);
Tailwind
colors: {
custom: {
50: '#c67dd9',
500: '#a940c8',
950: '#000000',
},
}SCSS
$custom: #a940c8; $custom-light: #c67dd9; $custom-dark: #000000;
JSON
{
"hex": "#a940c8",
"rgb": {
"r": 169,
"g": 64,
"b": 200
},
"hsl": {
"h": 286.324,
"s": 55.285,
"l": 51.765
},
"oklch": {
"l": 0.57309,
"c": 0.21324,
"h": 317.5
},
"luminance": 0.16272
}Semantic roles & 50–950 ramp
primary
#A940C8
secondary
#A2D094
accent
#DF496B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83