#9D2896#9D2896

#9D2896 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.194 H 330.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9D2896
RGBrgb(157, 40, 150)
HSLhsl(304, 59%, 39%)
HSVhsv(304, 75%, 62%)
CMYKcmyk(0%, 74.5%, 4.5%, 38.4%)
CIE-LABlab(39.39, 59.46, -34.47)
CIE-LCHlch(39.39, 68.73, 329.90°)
OKLaboklab(50.32% 0.1691 -0.0951)
OKLCHoklch(50.32% 0.194 330.7)
XYZxyz(20.1684, 10.8893, 29.8879)
Luminance0.1089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2896 #289D2F
analogous
#69289D #9D2896 #9D285B
triadic
#9D2896 #969D28 #28969D
tetradic
#9D2896 #9D6928 #289D2F #285B9D
square
#9D2896 #9D6928 #289D2F #285B9D
split-complementary
#9D2896 #5B9D28 #289D69
monochromatic
#3B0F39 #6C1C67 #9D2896 #CC36C3 #D867D2

Accessibility & contrast

On white

6.61
#9D2896 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9D2896 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2896
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2896#FFFFFF#000000##FFFFFF
##9D28961.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5399
Deuteranopia (green-blind)
#4C6293
Tritanopia (blue-blind)
#A3375D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2896;
/* rgb */ color: rgb(157, 40, 150);
/* oklch */ color: oklch(50.3% 0.194 330.7);
Tailwind
colors: {
  custom: {
    50: '#be6fb5',
    500: '#9d2896',
    950: '#000000',
  },
}
SCSS
$custom: #9d2896;
$custom-light: #be6fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2896",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 303.59,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50316,
    "c": 0.19397,
    "h": 330.7
  },
  "luminance": 0.10888
}

Semantic roles & 50–950 ramp

primary
#9D2896
secondary
#62BE68
accent
#E34F45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D2896

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

Preview Lab → · Contrast checker → · Palette generator →

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