#9F2D8D#9F2D8D

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

Color values

HEX#9F2D8D
RGBrgb(159, 45, 141)
HSLhsl(309, 56%, 40%)
HSVhsv(309, 72%, 62%)
CMYKcmyk(0%, 71.7%, 11.3%, 37.6%)
CIE-LABlab(39.87, 56.80, -28.22)
CIE-LCHlch(39.87, 63.42, 333.58°)
OKLaboklab(50.57% 0.1656 -0.077)
OKLCHoklch(50.57% 0.183 335)
XYZxyz(20.0444, 11.1725, 26.2950)
Luminance0.1117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2D8D #2D9F3F
analogous
#782D9F #9F2D8D #9F2D54
triadic
#9F2D8D #8D9F2D #2D8D9F
tetradic
#9F2D8D #9F782D #2D9F3F #2D549F
square
#9F2D8D #9F782D #2D9F3F #2D549F
split-complementary
#9F2D8D #549F2D #2D9F78
monochromatic
#401238 #6F2063 #9F2D8D #C940B3 #D670C6

Accessibility & contrast

On white

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

On black

3.23
#9F2D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9F2D8D#FFFFFF#000000##FFFFFF
##9F2D8D1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5390
Deuteranopia (green-blind)
#54648A
Tritanopia (blue-blind)
#A73659
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2d8d;
/* rgb */ color: rgb(159, 45, 141);
/* oklch */ color: oklch(50.6% 0.183 335.0);
Tailwind
colors: {
  custom: {
    50: '#bf71ae',
    500: '#9f2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #9f2d8d;
$custom-light: #bf71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2d8d",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 309.474,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.50572,
    "c": 0.18265,
    "h": 335
  },
  "luminance": 0.11171
}

Semantic roles & 50–950 ramp

primary
#9F2D8D
secondary
#6ABE77
accent
#DF6049
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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