#9F2997#9F2997

#9F2997 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.8% C 0.195 H 331.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9F2997
RGBrgb(159, 41, 151)
HSLhsl(304, 59%, 39%)
HSVhsv(304, 74%, 62%)
CMYKcmyk(0%, 74.2%, 5%, 37.6%)
CIE-LABlab(39.90, 59.75, -34.25)
CIE-LCHlch(39.90, 68.87, 330.18°)
OKLaboklab(50.76% 0.1703 -0.0944)
OKLCHoklch(50.76% 0.195 331)
XYZxyz(20.6769, 11.1928, 30.3436)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2997 #299F31
analogous
#6C299F #9F2997 #9F295C
triadic
#9F2997 #979F29 #29979F
tetradic
#9F2997 #9F6C29 #299F31 #295C9F
square
#9F2997 #9F6C29 #299F31 #295C9F
split-complementary
#9F2997 #5C9F29 #299F6C
monochromatic
#3E103B #6E1C69 #9F2997 #CC39C2 #D96AD1

Accessibility & contrast

On white

6.49
#9F2997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9F2997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2997
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2997#FFFFFF#000000##FFFFFF
##9F29971.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#4E6494
Tritanopia (blue-blind)
#A5385E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2997;
/* rgb */ color: rgb(159, 41, 151);
/* oklch */ color: oklch(50.8% 0.195 331.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fb6',
    500: '#9f2997',
    950: '#000000',
  },
}
SCSS
$custom: #9f2997;
$custom-light: #bf6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2997",
  "rgb": {
    "r": 159,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 304.068,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50764,
    "c": 0.19469,
    "h": 331
  },
  "luminance": 0.11191
}

Semantic roles & 50–950 ramp

primary
#9F2997
secondary
#65BF6B
accent
#E25046
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2997

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

Preview Lab → · Contrast checker → · Palette generator →

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