#9540B5#9540B5
#9540B5 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.5% C 0.187 H 315.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).
Color values
| HEX | #9540B5 |
|---|---|
| RGB | rgb(149, 64, 181) |
| HSL | hsl(284, 48%, 48%) |
| HSV | hsv(284, 65%, 71%) |
| CMYK | cmyk(17.7%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(43.35, 53.79, -46.76) |
| CIE-LCH | lch(43.35, 71.28, 319.00°) |
| OKLab | oklab(53.49% 0.1335 -0.1313) |
| OKLCH | oklch(53.49% 0.187 315.5) |
| XYZ | xyz(22.5670, 13.3933, 45.1035) |
| Luminance | 0.1339 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 0.92
Darkorchid
#9932CC
ΔE00 3.99
Medium Purple
#9E43A2
ΔE00 4.76
Barney
#AC1DB8
ΔE00 5.02
Ugly Purple
#A442A0
ΔE00 6.00
Royal Purple
#7851A9
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9540B5 #60B540
analogous
#5B40B5 #9540B5 #B5409A
triadic
#9540B5 #B59540 #40B595
tetradic
#9540B5 #B55B40 #60B540 #409AB5
square
#9540B5 #B55B40 #60B540 #409AB5
split-complementary
#9540B5 #9AB540 #40B55B
monochromatic
#4B205B #703088 #9540B5 #AF68CA #C796DA
Accessibility & contrast
On white
5.71
#9540B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.68
#9540B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9540B5
5.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9540B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9540B5 | 1.00 | 5.71 | 3.68 | 5.71 |
| #FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1061B9
Deuteranopia (green-blind)
#3F69B2
Tritanopia (blue-blind)
#935675
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #9540b5; /* rgb */ color: rgb(149, 64, 181); /* oklch */ color: oklch(53.5% 0.187 315.5);
Tailwind
colors: {
custom: {
50: '#b77bcc',
500: '#9540b5',
950: '#000000',
},
}SCSS
$custom: #9540b5; $custom-light: #b77bcc; $custom-dark: #000000;
JSON
{
"hex": "#9540b5",
"rgb": {
"r": 149,
"g": 64,
"b": 181
},
"hsl": {
"h": 283.59,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.53492,
"c": 0.18723,
"h": 315.5
},
"luminance": 0.13393
}Semantic roles & 50–950 ramp
primary
#9540B5
secondary
#9BC58B
accent
#D75075
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#120A13
muted
#817C82