#9742B2#9742B2
#9742B2 is a mid, vivid purple. Relative luminance 0.137; OKLCH L 53.8% C 0.182 H 317.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #9742B2 |
|---|---|
| RGB | rgb(151, 66, 178) |
| HSL | hsl(286, 46%, 48%) |
| HSV | hsv(286, 63%, 70%) |
| CMYK | cmyk(15.2%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(43.79, 52.72, -44.28) |
| CIE-LCH | lch(43.79, 68.85, 319.97°) |
| OKLab | oklab(53.81% 0.1337 -0.124) |
| OKLCH | oklch(53.81% 0.182 317.2) |
| XYZ | xyz(22.7454, 13.6910, 43.5553) |
| Luminance | 0.1369 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.58
Medium Purple
#9E43A2
ΔE00 3.90
Darkorchid
#9932CC
ΔE00 4.77
Barney
#AC1DB8
ΔE00 5.04
Ugly Purple
#A442A0
ΔE00 5.15
Royal Purple
#7851A9
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9742B2 #5DB242
analogous
#5F42B2 #9742B2 #B24295
triadic
#9742B2 #B29742 #42B297
tetradic
#9742B2 #B25F42 #5DB242 #4295B2
square
#9742B2 #B25F42 #5DB242 #4295B2
split-complementary
#9742B2 #95B242 #42B25F
monochromatic
#4B2159 #713185 #9742B2 #B16AC8 #C896D8
Accessibility & contrast
On white
5.62
#9742B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#9742B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9742B2
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9742B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9742B2 | 1.00 | 5.62 | 3.74 | 5.62 |
| #FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E62B5
Deuteranopia (green-blind)
#456AAF
Tritanopia (blue-blind)
#965674
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #9742b2; /* rgb */ color: rgb(151, 66, 178); /* oklch */ color: oklch(53.8% 0.182 317.2);
Tailwind
colors: {
custom: {
50: '#b97cc9',
500: '#9742b2',
950: '#000000',
},
}SCSS
$custom: #9742b2; $custom-light: #b97cc9; $custom-dark: #000000;
JSON
{
"hex": "#9742b2",
"rgb": {
"r": 151,
"g": 66,
"b": 178
},
"hsl": {
"h": 285.536,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.53808,
"c": 0.18229,
"h": 317.2
},
"luminance": 0.1369
}Semantic roles & 50–950 ramp
primary
#9742B2
secondary
#99C48C
accent
#D65272
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82