#9F2D97#9F2D97

#9F2D97 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.1% C 0.190 H 331.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9F2D97
RGBrgb(159, 45, 151)
HSLhsl(304, 56%, 40%)
HSVhsv(304, 72%, 62%)
CMYKcmyk(0%, 71.7%, 5%, 37.6%)
CIE-LABlab(40.38, 58.38, -33.49)
CIE-LCHlch(40.38, 67.31, 330.16°)
OKLaboklab(51.11% 0.1663 -0.0922)
OKLCHoklch(51.11% 0.19 331)
XYZxyz(20.8223, 11.4837, 30.3920)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2D97 #2D9F35
analogous
#6E2D9F #9F2D97 #9F2D5E
triadic
#9F2D97 #979F2D #2D979F
tetradic
#9F2D97 #9F6E2D #2D9F35 #2D5E9F
square
#9F2D97 #9F6E2D #2D9F35 #2D5E9F
split-complementary
#9F2D97 #5E9F2D #2D9F6E
monochromatic
#40123C #6F206A #9F2D97 #C940BF #D670CF

Accessibility & contrast

On white

6.37
#9F2D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9F2D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2D97
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2D97#FFFFFF#000000##FFFFFF
##9F2D971.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#506594
Tritanopia (blue-blind)
#A53A5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f2d97;
/* rgb */ color: rgb(159, 45, 151);
/* oklch */ color: oklch(51.1% 0.190 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf71b6',
    500: '#9f2d97',
    950: '#000000',
  },
}
SCSS
$custom: #9f2d97;
$custom-light: #bf71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2d97",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 304.211,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.51109,
    "c": 0.1902,
    "h": 331
  },
  "luminance": 0.11482
}

Semantic roles & 50–950 ramp

primary
#9F2D97
secondary
#6ABE70
accent
#DF5349
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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