#9D288A#9D288A

#9D288A is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.185 H 335.5°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#9D288A
RGBrgb(157, 40, 138)
HSLhsl(310, 59%, 39%)
HSVhsv(310, 75%, 62%)
CMYKcmyk(0%, 74.5%, 12.1%, 38.4%)
CIE-LABlab(38.76, 57.58, -28.14)
CIE-LCHlch(38.76, 64.09, 333.96°)
OKLaboklab(49.66% 0.1684 -0.0768)
OKLCHoklch(49.66% 0.185 335.5)
XYZxyz(19.2511, 10.5224, 25.0570)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D288A #289D3B
analogous
#75289D #9D288A #9D284F
triadic
#9D288A #8A9D28 #288A9D
tetradic
#9D288A #9D7528 #289D3B #284F9D
square
#9D288A #9D7528 #289D3B #284F9D
split-complementary
#9D288A #4F9D28 #289D75
monochromatic
#3B0F34 #6C1C5F #9D288A #CC36B4 #D867C6

Accessibility & contrast

On white

6.77
#9D288A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9D288A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D288A
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D288A#FFFFFF#000000##FFFFFF
##9D288A1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508D
Deuteranopia (green-blind)
#526187
Tritanopia (blue-blind)
#A53156
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d288a;
/* rgb */ color: rgb(157, 40, 138);
/* oklch */ color: oklch(49.7% 0.185 335.5);
Tailwind
colors: {
  custom: {
    50: '#be6eac',
    500: '#9d288a',
    950: '#000000',
  },
}
SCSS
$custom: #9d288a;
$custom-light: #be6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d288a",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 309.744,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.49659,
    "c": 0.18508,
    "h": 335.5
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#9D288A
secondary
#62BE71
accent
#E35F45
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D288A

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

Preview Lab → · Contrast checker → · Palette generator →

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