#9F2D8F#9F2D8F

#9F2D8F is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.184 H 334.2°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#9F2D8F
RGBrgb(159, 45, 143)
HSLhsl(308, 56%, 40%)
HSVhsv(308, 72%, 62%)
CMYKcmyk(0%, 71.7%, 10.1%, 37.6%)
CIE-LABlab(39.97, 57.11, -29.28)
CIE-LCHlch(39.97, 64.18, 332.85°)
OKLaboklab(50.68% 0.1658 -0.0801)
OKLCHoklch(50.68% 0.184 334.2)
XYZxyz(20.1946, 11.2326, 27.0858)
Luminance0.1123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2D8F #2D9F3D
analogous
#762D9F #9F2D8F #9F2D56
triadic
#9F2D8F #8F9F2D #2D8F9F
tetradic
#9F2D8F #9F762D #2D9F3D #2D569F
square
#9F2D8F #9F762D #2D9F3D #2D569F
split-complementary
#9F2D8F #569F2D #2D9F76
monochromatic
#401239 #6F2064 #9F2D8F #C940B6 #D670C8

Accessibility & contrast

On white

6.47
#9F2D8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9F2D8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2D8F
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2D8F#FFFFFF#000000##FFFFFF
##9F2D8F1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5492
Deuteranopia (green-blind)
#53648C
Tritanopia (blue-blind)
#A7375A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2d8f;
/* rgb */ color: rgb(159, 45, 143);
/* oklch */ color: oklch(50.7% 0.184 334.2);
Tailwind
colors: {
  custom: {
    50: '#bf71b0',
    500: '#9f2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #9f2d8f;
$custom-light: #bf71b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2d8f",
  "rgb": {
    "r": 159,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 308.421,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.50676,
    "c": 0.18413,
    "h": 334.2
  },
  "luminance": 0.11231
}

Semantic roles & 50–950 ramp

primary
#9F2D8F
secondary
#6ABE76
accent
#DF5E49
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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