#9740B1#9740B1
#9740B1 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.5% C 0.184 H 317.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).
Color values
| HEX | #9740B1 |
|---|---|
| RGB | rgb(151, 64, 177) |
| HSL | hsl(286, 47%, 47%) |
| HSV | hsv(286, 64%, 69%) |
| CMYK | cmyk(14.7%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(43.39, 53.45, -44.32) |
| CIE-LCH | lch(43.39, 69.44, 320.33°) |
| OKLab | oklab(53.5% 0.1361 -0.1241) |
| OKLCH | oklch(53.5% 0.184 317.6) |
| XYZ | xyz(22.5306, 13.4213, 42.9902) |
| Luminance | 0.1342 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.26
Medium Purple
#9E43A2
ΔE00 3.85
Darkorchid
#9932CC
ΔE00 4.72
Barney
#AC1DB8
ΔE00 4.76
Ugly Purple
#A442A0
ΔE00 5.10
Warm Purple
#952E8F
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9740B1 #5AB140
analogous
#5F40B1 #9740B1 #B14092
triadic
#9740B1 #B19740 #40B197
tetradic
#9740B1 #B15F40 #5AB140 #4092B1
square
#9740B1 #B15F40 #5AB140 #4092B1
split-complementary
#9740B1 #92B140 #40B15F
monochromatic
#4A1F57 #713084 #9740B1 #B166C8 #C893D8
Accessibility & contrast
On white
5.70
#9740B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#9740B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9740B1
5.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9740B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9740B1 | 1.00 | 5.70 | 3.68 | 5.70 |
| #FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B61B4
Deuteranopia (green-blind)
#4469AE
Tritanopia (blue-blind)
#965473
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #9740b1; /* rgb */ color: rgb(151, 64, 177); /* oklch */ color: oklch(53.5% 0.184 317.6);
Tailwind
colors: {
custom: {
50: '#b97bc9',
500: '#9740b1',
950: '#000000',
},
}SCSS
$custom: #9740b1; $custom-light: #b97bc9; $custom-dark: #000000;
JSON
{
"hex": "#9740b1",
"rgb": {
"r": 151,
"g": 64,
"b": 177
},
"hsl": {
"h": 286.195,
"s": 46.888,
"l": 47.255
},
"oklch": {
"l": 0.53503,
"c": 0.18415,
"h": 317.6
},
"luminance": 0.1342
}Semantic roles & 50–950 ramp
primary
#9740B1
secondary
#97C389
accent
#D75170
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82