#9A40AF#9A40AF
#9A40AF is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.8% C 0.184 H 319.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #9A40AF |
|---|---|
| RGB | rgb(154, 64, 175) |
| HSL | hsl(289, 46%, 47%) |
| HSV | hsv(289, 63%, 69%) |
| CMYK | cmyk(12%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(43.70, 53.77, -42.62) |
| CIE-LCH | lch(43.70, 68.62, 321.60°) |
| OKLab | oklab(53.78% 0.1398 -0.119) |
| OKLCH | oklch(53.78% 0.184 319.6) |
| XYZ | xyz(22.8967, 13.6330, 41.9745) |
| Luminance | 0.1363 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.85
Medium Purple
#9E43A2
ΔE00 3.10
Ugly Purple
#A442A0
ΔE00 4.31
Barney
#AC1DB8
ΔE00 4.53
Darkorchid
#9932CC
ΔE00 5.28
Warm Purple
#952E8F
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9A40AF #55AF40
analogous
#6340AF #9A40AF #AF408D
triadic
#9A40AF #AF9A40 #40AF9A
tetradic
#9A40AF #AF6340 #55AF40 #408DAF
square
#9A40AF #AF6340 #55AF40 #408DAF
split-complementary
#9A40AF #8DAF40 #40AF63
monochromatic
#4B1F55 #733082 #9A40AF #B465C7 #CA92D7
Accessibility & contrast
On white
5.64
#9A40AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.73
#9A40AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9A40AF
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9A40AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9A40AF | 1.00 | 5.64 | 3.73 | 5.64 |
| #FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2161B2
Deuteranopia (green-blind)
#486AAC
Tritanopia (blue-blind)
#9A5372
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9a40af; /* rgb */ color: rgb(154, 64, 175); /* oklch */ color: oklch(53.8% 0.184 319.6);
Tailwind
colors: {
custom: {
50: '#bb7bc7',
500: '#9a40af',
950: '#000000',
},
}SCSS
$custom: #9a40af; $custom-light: #bb7bc7; $custom-dark: #000000;
JSON
{
"hex": "#9a40af",
"rgb": {
"r": 154,
"g": 64,
"b": 175
},
"hsl": {
"h": 288.649,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.53779,
"c": 0.18356,
"h": 319.6
},
"luminance": 0.13632
}Semantic roles & 50–950 ramp
primary
#9A40AF
secondary
#93C388
accent
#D6526B
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82