#9D2891#9D2891

#9D2891 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.190 H 332.6°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9D2891
RGBrgb(157, 40, 145)
HSLhsl(306, 59%, 39%)
HSVhsv(306, 75%, 62%)
CMYKcmyk(0%, 74.5%, 7.6%, 38.4%)
CIE-LABlab(39.12, 58.66, -31.86)
CIE-LCHlch(39.12, 66.76, 331.50°)
OKLaboklab(50.04% 0.1689 -0.0875)
OKLCHoklch(50.04% 0.19 332.6)
XYZxyz(19.7743, 10.7317, 27.8125)
Luminance0.1073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2891 #289D34
analogous
#6E289D #9D2891 #9D2856
triadic
#9D2891 #919D28 #28919D
tetradic
#9D2891 #9D6E28 #289D34 #28569D
square
#9D2891 #9D6E28 #289D34 #28569D
split-complementary
#9D2891 #569D28 #289D6E
monochromatic
#3B0F37 #6C1C64 #9D2891 #CC36BD #D867CD

Accessibility & contrast

On white

6.68
#9D2891 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9D2891 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2891
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2891#FFFFFF#000000##FFFFFF
##9D28911.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225294
Deuteranopia (green-blind)
#4F628E
Tritanopia (blue-blind)
#A4355A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2891;
/* rgb */ color: rgb(157, 40, 145);
/* oklch */ color: oklch(50.0% 0.190 332.6);
Tailwind
colors: {
  custom: {
    50: '#bd6eb1',
    500: '#9d2891',
    950: '#000000',
  },
}
SCSS
$custom: #9d2891;
$custom-light: #bd6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2891",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 306.154,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50036,
    "c": 0.19021,
    "h": 332.6
  },
  "luminance": 0.1073
}

Semantic roles & 50–950 ramp

primary
#9D2891
secondary
#62BE6C
accent
#E35545
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130811
muted
#827B80

Preview Lab

Preview with #9D2891

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

Preview Lab → · Contrast checker → · Palette generator →

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