#9740B2#9740B2
#9740B2 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.6% C 0.185 H 317.3°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).
Color values
| HEX | #9740B2 |
|---|---|
| RGB | rgb(151, 64, 178) |
| HSL | hsl(286, 47%, 47%) |
| HSV | hsv(286, 64%, 70%) |
| CMYK | cmyk(15.2%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(43.45, 53.65, -44.82) |
| CIE-LCH | lch(43.45, 69.91, 320.12°) |
| OKLab | oklab(53.57% 0.1361 -0.1255) |
| OKLCH | oklch(53.57% 0.185 317.3) |
| XYZ | xyz(22.6306, 13.4614, 43.5171) |
| Luminance | 0.1346 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.24
Medium Purple
#9E43A2
ΔE00 4.00
Darkorchid
#9932CC
ΔE00 4.56
Barney
#AC1DB8
ΔE00 4.76
Ugly Purple
#A442A0
ΔE00 5.25
Warm Purple
#952E8F
ΔE00 7.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9740B2 #5BB240
analogous
#5E40B2 #9740B2 #B24094
triadic
#9740B2 #B29740 #40B297
tetradic
#9740B2 #B25E40 #5BB240 #4094B2
square
#9740B2 #B25E40 #5BB240 #4094B2
split-complementary
#9740B2 #94B240 #40B25E
monochromatic
#4B2058 #713085 #9740B2 #B167C8 #C894D8
Accessibility & contrast
On white
5.69
#9740B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.69
#9740B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9740B2
5.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9740B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9740B2 | 1.00 | 5.69 | 3.69 | 5.69 |
| #FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1961B5
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#965473
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9740b2; /* rgb */ color: rgb(151, 64, 178); /* oklch */ color: oklch(53.6% 0.185 317.3);
Tailwind
colors: {
custom: {
50: '#b97bc9',
500: '#9740b2',
950: '#000000',
},
}SCSS
$custom: #9740b2; $custom-light: #b97bc9; $custom-dark: #000000;
JSON
{
"hex": "#9740b2",
"rgb": {
"r": 151,
"g": 64,
"b": 178
},
"hsl": {
"h": 285.789,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.53565,
"c": 0.18512,
"h": 317.3
},
"luminance": 0.1346
}Semantic roles & 50–950 ramp
primary
#9740B2
secondary
#98C48A
accent
#D75171
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82