#9F3198#9F3198
#9F3198 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.5% C 0.186 H 330.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #9F3198 |
|---|---|
| RGB | rgb(159, 49, 152) |
| HSL | hsl(304, 53%, 41%) |
| HSV | hsv(304, 69%, 62%) |
| CMYK | cmyk(0%, 69.2%, 4.4%, 37.6%) |
| CIE-LAB | lab(40.95, 57.08, -33.20) |
| CIE-LCH | lch(40.95, 66.04, 329.82°) |
| OKLab | oklab(51.54% 0.1622 -0.0914) |
| OKLCH | oklch(51.54% 0.186 330.6) |
| XYZ | xyz(21.0638, 11.8361, 30.8749) |
| Luminance | 0.1183 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.36
Medium Purple
#9E43A2
ΔE00 3.64
Ugly Purple
#A442A0
ΔE00 3.66
Barney Purple
#A00498
ΔE00 4.09
Barney
#AC1DB8
ΔE00 5.51
Purply
#983FB2
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F3198 #319F38
analogous
#6F319F #9F3198 #9F3161
triadic
#9F3198 #989F31 #31989F
tetradic
#9F3198 #9F6F31 #319F38 #31619F
square
#9F3198 #9F6F31 #319F38 #31619F
split-complementary
#9F3198 #619F31 #319F6F
monochromatic
#41143F #70236B #9F3198 #C647BE #D576CF
Accessibility & contrast
On white
6.24
#9F3198 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#9F3198 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9F3198
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F3198 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9F3198 | 1.00 | 6.24 | 3.37 | 6.24 |
| #FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28579B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#A53E61
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #9f3198; /* rgb */ color: rgb(159, 49, 152); /* oklch */ color: oklch(51.5% 0.186 330.6);
Tailwind
colors: {
custom: {
50: '#bf73b7',
500: '#9f3198',
950: '#000000',
},
}SCSS
$custom: #9f3198; $custom-light: #bf73b7; $custom-dark: #000000;
JSON
{
"hex": "#9f3198",
"rgb": {
"r": 159,
"g": 49,
"b": 152
},
"hsl": {
"h": 303.818,
"s": 52.885,
"l": 40.784
},
"oklch": {
"l": 0.51538,
"c": 0.18615,
"h": 330.6
},
"luminance": 0.11835
}Semantic roles & 50–950 ramp
primary
#9F3198
secondary
#6FBD74
accent
#DC554C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80