#9748B1#9748B1
#9748B1 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.5% C 0.172 H 317.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #9748B1 |
|---|---|
| RGB | rgb(151, 72, 177) |
| HSL | hsl(285, 42%, 49%) |
| HSV | hsv(285, 59%, 69%) |
| CMYK | cmyk(14.7%, 59.3%, 0%, 30.6%) |
| CIE-LAB | lab(44.79, 49.63, -42.10) |
| CIE-LCH | lch(44.79, 65.09, 319.69°) |
| OKLab | oklab(54.52% 0.1261 -0.1176) |
| OKLCH | oklch(54.52% 0.172 317) |
| XYZ | xyz(23.0145, 14.3892, 43.1515) |
| Luminance | 0.1439 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 1.88
Medium Purple
#9E43A2
ΔE00 3.67
Ugly Purple
#A442A0
ΔE00 4.90
Darkorchid
#9932CC
ΔE00 5.72
Barney
#AC1DB8
ΔE00 6.03
Deep Lavender
#8D5EB7
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9748B1 #62B148
analogous
#6348B1 #9748B1 #B14897
triadic
#9748B1 #B19748 #48B197
tetradic
#9748B1 #B16348 #62B148 #4897B1
square
#9748B1 #B16348 #62B148 #4897B1
split-complementary
#9748B1 #97B148 #48B163
monochromatic
#4D255A #723685 #9748B1 #B071C5 #C89CD7
Accessibility & contrast
On white
5.42
#9748B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.88
#9748B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9748B1
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9748B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9748B1 | 1.00 | 5.42 | 3.88 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#4A6CAE
Tritanopia (blue-blind)
#965976
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #9748b1; /* rgb */ color: rgb(151, 72, 177); /* oklch */ color: oklch(54.5% 0.172 317.0);
Tailwind
colors: {
custom: {
50: '#b87fc9',
500: '#9748b1',
950: '#000000',
},
}SCSS
$custom: #9748b1; $custom-light: #b87fc9; $custom-dark: #000000;
JSON
{
"hex": "#9748b1",
"rgb": {
"r": 151,
"g": 72,
"b": 177
},
"hsl": {
"h": 285.143,
"s": 42.169,
"l": 48.824
},
"oklch": {
"l": 0.54516,
"c": 0.17244,
"h": 317
},
"luminance": 0.14388
}Semantic roles & 50–950 ramp
primary
#9748B1
secondary
#9EC391
accent
#D25675
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#120A13
muted
#817C82