#9542BF#9542BF
#9542BF is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.4% C 0.194 H 312.3°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).
Color values
| HEX | #9542BF |
|---|---|
| RGB | rgb(149, 66, 191) |
| HSL | hsl(280, 49%, 50%) |
| HSV | hsv(280, 65%, 75%) |
| CMYK | cmyk(22%, 65.4%, 0%, 25.1%) |
| CIE-LAB | lab(44.30, 54.98, -51.09) |
| CIE-LCH | lch(44.30, 75.06, 317.10°) |
| OKLab | oklab(54.38% 0.1308 -0.1439) |
| OKLCH | oklch(54.38% 0.194 312.3) |
| XYZ | xyz(23.7449, 14.0482, 50.7409) |
| Luminance | 0.1405 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 2.52
Darkorchid
#9932CC
ΔE00 3.02
Barney
#AC1DB8
ΔE00 5.76
Medium Purple
#9E43A2
ΔE00 6.21
Vibrant Purple
#AD03DE
ΔE00 6.31
Blueviolet
#8A2BE2
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9542BF #6CBF42
analogous
#5642BF #9542BF #BF42AA
triadic
#9542BF #BF9542 #42BF95
tetradic
#9542BF #BF5642 #6CBF42 #42AABF
square
#9542BF #BF5642 #6CBF42 #42AABF
split-complementary
#9542BF #AABF42 #42BF56
monochromatic
#4E2265 #723292 #9542BF #AF70CE #C89DDE
Accessibility & contrast
On white
5.51
#9542BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.81
#9542BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9542BF
5.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9542BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9542BF | 1.00 | 5.51 | 3.81 | 5.51 |
| #FFFFFF | 5.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#376ABC
Tritanopia (blue-blind)
#905B7B
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #9542bf; /* rgb */ color: rgb(149, 66, 191); /* oklch */ color: oklch(54.4% 0.194 312.3);
Tailwind
colors: {
custom: {
50: '#b87cd3',
500: '#9542bf',
950: '#000000',
},
}SCSS
$custom: #9542bf; $custom-light: #b87cd3; $custom-dark: #000000;
JSON
{
"hex": "#9542bf",
"rgb": {
"r": 149,
"g": 66,
"b": 191
},
"hsl": {
"h": 279.84,
"s": 49.407,
"l": 50.392
},
"oklch": {
"l": 0.54377,
"c": 0.19448,
"h": 312.3
},
"luminance": 0.14048
}Semantic roles & 50–950 ramp
primary
#9542BF
secondary
#A5CA93
accent
#D94F7D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83