#9742B7#9742B7
#9742B7 is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.1% C 0.187 H 315.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).
Color values
| HEX | #9742B7 |
|---|---|
| RGB | rgb(151, 66, 183) |
| HSL | hsl(284, 47%, 49%) |
| HSV | hsv(284, 64%, 72%) |
| CMYK | cmyk(17.5%, 63.9%, 0%, 28.2%) |
| CIE-LAB | lab(44.08, 53.76, -46.75) |
| CIE-LCH | lch(44.08, 71.24, 318.99°) |
| OKLab | oklab(54.12% 0.1336 -0.1312) |
| OKLCH | oklch(54.12% 0.187 315.5) |
| XYZ | xyz(23.2566, 13.8954, 46.2476) |
| Luminance | 0.1389 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.10
Darkorchid
#9932CC
ΔE00 4.05
Medium Purple
#9E43A2
ΔE00 4.71
Barney
#AC1DB8
ΔE00 5.13
Ugly Purple
#A442A0
ΔE00 5.90
Royal Purple
#7851A9
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9742B7 #62B742
analogous
#5D42B7 #9742B7 #B7429D
triadic
#9742B7 #B79742 #42B797
tetradic
#9742B7 #B75D42 #62B742 #429DB7
square
#9742B7 #B75D42 #62B742 #429DB7
split-complementary
#9742B7 #9DB742 #42B75D
monochromatic
#4D225D #72328A #9742B7 #B06CCA #C899DA
Accessibility & contrast
On white
5.56
#9742B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#9742B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9742B7
5.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9742B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9742B7 | 1.00 | 5.56 | 3.78 | 5.56 |
| #FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1563BB
Deuteranopia (green-blind)
#416BB4
Tritanopia (blue-blind)
#955777
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #9742b7; /* rgb */ color: rgb(151, 66, 183); /* oklch */ color: oklch(54.1% 0.187 315.5);
Tailwind
colors: {
custom: {
50: '#b97ccd',
500: '#9742b7',
950: '#000000',
},
}SCSS
$custom: #9742b7; $custom-light: #b97ccd; $custom-dark: #000000;
JSON
{
"hex": "#9742b7",
"rgb": {
"r": 151,
"g": 66,
"b": 183
},
"hsl": {
"h": 283.59,
"s": 46.988,
"l": 48.824
},
"oklch": {
"l": 0.54118,
"c": 0.18723,
"h": 315.5
},
"luminance": 0.13895
}Semantic roles & 50–950 ramp
primary
#9742B7
secondary
#9EC68F
accent
#D75176
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A13
muted
#817C82