#9F47BA#9F47BA
#9F47BA is a mid, vivid purple. Relative luminance 0.154; OKLCH L 55.9% C 0.186 H 317.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #9F47BA |
|---|---|
| RGB | rgb(159, 71, 186) |
| HSL | hsl(286, 45%, 50%) |
| HSV | hsv(286, 62%, 73%) |
| CMYK | cmyk(14.5%, 61.8%, 0%, 27.1%) |
| CIE-LAB | lab(46.21, 53.97, -45.05) |
| CIE-LCH | lch(46.21, 70.30, 320.15°) |
| OKLab | oklab(55.94% 0.1374 -0.126) |
| OKLCH | oklch(55.94% 0.186 317.5) |
| XYZ | xyz(25.4130, 15.4236, 48.0833) |
| Luminance | 0.1542 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.63
Medium Purple
#9E43A2
ΔE00 4.49
Darkorchid
#9932CC
ΔE00 5.22
Ugly Purple
#A442A0
ΔE00 5.35
Barney
#AC1DB8
ΔE00 5.58
Amethyst
#9B5FC0
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F47BA #62BA47
analogous
#6547BA #9F47BA #BA479C
triadic
#9F47BA #BA9F47 #47BA9F
tetradic
#9F47BA #BA6547 #62BA47 #479CBA
square
#9F47BA #BA6547 #62BA47 #479CBA
split-complementary
#9F47BA #9CBA47 #47BA65
monochromatic
#542562 #7A358E #9F47BA #B674CB #CDA0DB
Accessibility & contrast
On white
5.14
#9F47BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#9F47BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F47BA
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F47BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F47BA | 1.00 | 5.14 | 4.08 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#4B70B7
Tritanopia (blue-blind)
#9E5B7A
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #9f47ba; /* rgb */ color: rgb(159, 71, 186); /* oklch */ color: oklch(55.9% 0.186 317.5);
Tailwind
colors: {
custom: {
50: '#be7fcf',
500: '#9f47ba',
950: '#000000',
},
}SCSS
$custom: #9f47ba; $custom-light: #be7fcf; $custom-dark: #000000;
JSON
{
"hex": "#9f47ba",
"rgb": {
"r": 159,
"g": 71,
"b": 186
},
"hsl": {
"h": 285.913,
"s": 45.455,
"l": 50.392
},
"oklch": {
"l": 0.55944,
"c": 0.18644,
"h": 317.5
},
"luminance": 0.15423
}Semantic roles & 50–950 ramp
primary
#9F47BA
secondary
#A1C895
accent
#D55371
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#120A14
muted
#817C82