#9D2897#9D2897

#9D2897 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.4% C 0.195 H 330.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#9D2897
RGBrgb(157, 40, 151)
HSLhsl(303, 59%, 39%)
HSVhsv(303, 75%, 62%)
CMYKcmyk(0%, 74.5%, 3.8%, 38.4%)
CIE-LABlab(39.45, 59.63, -34.99)
CIE-LCHlch(39.45, 69.14, 329.59°)
OKLaboklab(50.37% 0.1691 -0.0966)
OKLCHoklch(50.37% 0.195 330.3)
XYZxyz(20.2493, 10.9216, 30.3137)
Luminance0.1092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2897 #289D2E
analogous
#68289D #9D2897 #9D285C
triadic
#9D2897 #979D28 #28979D
tetradic
#9D2897 #9D6828 #289D2E #285C9D
square
#9D2897 #9D6828 #289D2E #285C9D
split-complementary
#9D2897 #5C9D28 #289D68
monochromatic
#3B0F39 #6C1C68 #9D2897 #CC36C4 #D867D2

Accessibility & contrast

On white

6.60
#9D2897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D2897
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2897#FFFFFF#000000##FFFFFF
##9D28971.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A539A
Deuteranopia (green-blind)
#4C6294
Tritanopia (blue-blind)
#A3385D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2897;
/* rgb */ color: rgb(157, 40, 151);
/* oklch */ color: oklch(50.4% 0.195 330.3);
Tailwind
colors: {
  custom: {
    50: '#be6fb6',
    500: '#9d2897',
    950: '#000000',
  },
}
SCSS
$custom: #9d2897;
$custom-light: #be6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2897",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 303.077,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50373,
    "c": 0.19474,
    "h": 330.3
  },
  "luminance": 0.1092
}

Semantic roles & 50–950 ramp

primary
#9D2897
secondary
#62BE67
accent
#E34D45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D2897

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

Preview Lab → · Contrast checker → · Palette generator →

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