#9F45BC#9F45BC
#9F45BC is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.8% C 0.191 H 317.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #9F45BC |
|---|---|
| RGB | rgb(159, 69, 188) |
| HSL | hsl(285, 47%, 50%) |
| HSV | hsv(285, 63%, 74%) |
| CMYK | cmyk(15.4%, 63.3%, 0%, 26.3%) |
| CIE-LAB | lab(45.99, 55.30, -46.57) |
| CIE-LCH | lch(45.99, 72.30, 319.90°) |
| OKLab | oklab(55.82% 0.1399 -0.1304) |
| OKLCH | oklch(55.82% 0.191 317) |
| XYZ | xyz(25.5020, 15.2590, 49.1691) |
| Luminance | 0.1526 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.48
Darkorchid
#9932CC
ΔE00 4.69
Medium Purple
#9E43A2
ΔE00 4.78
Barney
#AC1DB8
ΔE00 5.29
Ugly Purple
#A442A0
ΔE00 5.66
Amethyst
#9B5FC0
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F45BC #62BC45
analogous
#6345BC #9F45BC #BC459E
triadic
#9F45BC #BC9F45 #45BC9F
tetradic
#9F45BC #BC6345 #62BC45 #459EBC
square
#9F45BC #BC6345 #62BC45 #459EBC
split-complementary
#9F45BC #9EBC45 #45BC63
monochromatic
#542463 #7A3490 #9F45BC #B672CC #CD9FDC
Accessibility & contrast
On white
5.18
#9F45BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#9F45BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F45BC
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F45BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F45BC | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#4870B9
Tritanopia (blue-blind)
#9E5A7A
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9f45bc; /* rgb */ color: rgb(159, 69, 188); /* oklch */ color: oklch(55.8% 0.191 317.0);
Tailwind
colors: {
custom: {
50: '#bf7ed1',
500: '#9f45bc',
950: '#000000',
},
}SCSS
$custom: #9f45bc; $custom-light: #bf7ed1; $custom-dark: #000000;
JSON
{
"hex": "#9f45bc",
"rgb": {
"r": 159,
"g": 69,
"b": 188
},
"hsl": {
"h": 285.378,
"s": 47.036,
"l": 50.392
},
"oklch": {
"l": 0.55821,
"c": 0.19123,
"h": 317
},
"luminance": 0.15258
}Semantic roles & 50–950 ramp
primary
#9F45BC
secondary
#A1C994
accent
#D75172
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#120A14
muted
#817C82