#9D288E#9D288E

#9D288E is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.188 H 333.8°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9D288E
RGBrgb(157, 40, 142)
HSLhsl(308, 59%, 39%)
HSVhsv(308, 75%, 62%)
CMYKcmyk(0%, 74.5%, 9.6%, 38.4%)
CIE-LABlab(38.97, 58.20, -30.27)
CIE-LCHlch(38.97, 65.60, 332.52°)
OKLaboklab(49.87% 0.1687 -0.0829)
OKLCHoklch(49.87% 0.188 333.8)
XYZxyz(19.5461, 10.6404, 26.6103)
Luminance0.1064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D288E #289D37
analogous
#71289D #9D288E #9D2853
triadic
#9D288E #8E9D28 #288E9D
tetradic
#9D288E #9D7128 #289D37 #28539D
square
#9D288E #9D7128 #289D37 #28539D
split-complementary
#9D288E #539D28 #289D71
monochromatic
#3B0F36 #6C1C62 #9D288E #CC36B9 #D867CA

Accessibility & contrast

On white

6.71
#9D288E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9D288E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D288E
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D288E#FFFFFF#000000##FFFFFF
##9D288E1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#50628B
Tritanopia (blue-blind)
#A43358
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d288e;
/* rgb */ color: rgb(157, 40, 142);
/* oklch */ color: oklch(49.9% 0.188 333.8);
Tailwind
colors: {
  custom: {
    50: '#bd6eaf',
    500: '#9d288e',
    950: '#000000',
  },
}
SCSS
$custom: #9d288e;
$custom-light: #bd6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d288e",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 307.692,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.49872,
    "c": 0.18799,
    "h": 333.8
  },
  "luminance": 0.10639
}

Semantic roles & 50–950 ramp

primary
#9D288E
secondary
#62BE6E
accent
#E35945
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D288E

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

Preview Lab → · Contrast checker → · Palette generator →

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