#9F1D97#9F1D97

#9F1D97 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.206 H 331.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9F1D97
RGBrgb(159, 29, 151)
HSLhsl(304, 69%, 37%)
HSVhsv(304, 82%, 62%)
CMYKcmyk(0%, 81.8%, 5%, 37.6%)
CIE-LABlab(38.70, 63.21, -36.16)
CIE-LCHlch(38.70, 72.82, 330.23°)
OKLaboklab(49.91% 0.1803 -0.0998)
OKLCHoklch(49.91% 0.206 331)
XYZxyz(20.3233, 10.4857, 30.2257)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1D97 #1D9F25
analogous
#661D9F #9F1D97 #9F1D56
triadic
#9F1D97 #979F1D #1D979F
tetradic
#9F1D97 #9F661D #1D9F25 #1D569F
square
#9F1D97 #9F661D #1D9F25 #1D569F
split-complementary
#9F1D97 #569F1D #1D9F66
monochromatic
#370A35 #6B1466 #9F1D97 #D326C8 #E056D8

Accessibility & contrast

On white

6.78
#9F1D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F1D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1D97
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1D97#FFFFFF#000000##FFFFFF
##9F1D971.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08509A
Deuteranopia (green-blind)
#496194
Tritanopia (blue-blind)
#A6305B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f1d97;
/* rgb */ color: rgb(159, 29, 151);
/* oklch */ color: oklch(49.9% 0.206 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6bb6',
    500: '#9f1d97',
    950: '#000000',
  },
}
SCSS
$custom: #9f1d97;
$custom-light: #bf6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1d97",
  "rgb": {
    "r": 159,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 303.692,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49905,
    "c": 0.20607,
    "h": 331
  },
  "luminance": 0.10484
}

Semantic roles & 50–950 ramp

primary
#9F1D97
secondary
#54C45B
accent
#EC473C
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1D97

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9F1D97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva