#9F2D99#9F2D99

#9F2D99 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.2% C 0.192 H 330.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9F2D99
RGBrgb(159, 45, 153)
HSLhsl(303, 56%, 40%)
HSVhsv(303, 72%, 62%)
CMYKcmyk(0%, 71.7%, 3.8%, 37.6%)
CIE-LABlab(40.49, 58.71, -34.53)
CIE-LCHlch(40.49, 68.11, 329.54°)
OKLaboklab(51.22% 0.1664 -0.0952)
OKLCHoklch(51.22% 0.192 330.2)
XYZxyz(20.9861, 11.5492, 31.2547)
Luminance0.1155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2D99 #2D9F33
analogous
#6C2D9F #9F2D99 #9F2D60
triadic
#9F2D99 #999F2D #2D999F
tetradic
#9F2D99 #9F6C2D #2D9F33 #2D609F
square
#9F2D99 #9F6C2D #2D9F33 #2D609F
split-complementary
#9F2D99 #609F2D #2D9F6C
monochromatic
#40123D #6F206B #9F2D99 #C940C2 #D670D1

Accessibility & contrast

On white

6.35
#9F2D99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9F2D99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2D99
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2D99#FFFFFF#000000##FFFFFF
##9F2D991.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559C
Deuteranopia (green-blind)
#4F6596
Tritanopia (blue-blind)
#A53B60
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f2d99;
/* rgb */ color: rgb(159, 45, 153);
/* oklch */ color: oklch(51.2% 0.192 330.2);
Tailwind
colors: {
  custom: {
    50: '#bf71b7',
    500: '#9f2d99',
    950: '#000000',
  },
}
SCSS
$custom: #9f2d99;
$custom-light: #bf71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2d99",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 303.158,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.51221,
    "c": 0.19174,
    "h": 330.2
  },
  "luminance": 0.11548
}

Semantic roles & 50–950 ramp

primary
#9F2D99
secondary
#6ABE6E
accent
#DF5149
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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