#9F3397#9F3397
#9F3397 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.7% C 0.183 H 331.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).
Color values
| HEX | #9F3397 |
|---|---|
| RGB | rgb(159, 51, 151) |
| HSL | hsl(304, 51%, 41%) |
| HSV | hsv(304, 68%, 62%) |
| CMYK | cmyk(0%, 67.9%, 5%, 37.6%) |
| CIE-LAB | lab(41.18, 56.15, -32.24) |
| CIE-LCH | lch(41.18, 64.75, 330.13°) |
| OKLab | oklab(51.68% 0.1599 -0.0887) |
| OKLCH | oklch(51.68% 0.183 331) |
| XYZ | xyz(21.0678, 11.9745, 30.4739) |
| Luminance | 0.1197 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.47
Ugly Purple
#A442A0
ΔE00 3.42
Medium Purple
#9E43A2
ΔE00 3.48
Barney Purple
#A00498
ΔE00 4.46
Barney
#AC1DB8
ΔE00 5.79
Purply
#983FB2
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F3397 #339F3B
analogous
#71339F #9F3397 #9F3361
triadic
#9F3397 #979F33 #33979F
tetradic
#9F3397 #9F7133 #339F3B #33619F
square
#9F3397 #9F7133 #339F3B #33619F
split-complementary
#9F3397 #619F33 #339F71
monochromatic
#42153F #71246B #9F3397 #C54ABC #D479CD
Accessibility & contrast
On white
6.19
#9F3397 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#9F3397 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F3397
6.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F3397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F3397 | 1.00 | 6.19 | 3.39 | 6.19 |
| #FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#526694
Tritanopia (blue-blind)
#A53F61
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #9f3397; /* rgb */ color: rgb(159, 51, 151); /* oklch */ color: oklch(51.7% 0.183 331.0);
Tailwind
colors: {
custom: {
50: '#bf74b6',
500: '#9f3397',
950: '#000000',
},
}SCSS
$custom: #9f3397; $custom-light: #bf74b6; $custom-dark: #000000;
JSON
{
"hex": "#9f3397",
"rgb": {
"r": 159,
"g": 51,
"b": 151
},
"hsl": {
"h": 304.444,
"s": 51.429,
"l": 41.176
},
"oklch": {
"l": 0.5168,
"c": 0.18283,
"h": 331
},
"luminance": 0.11973
}Semantic roles & 50–950 ramp
primary
#9F3397
secondary
#71BC77
accent
#DB574D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80