#9D288B#9D288B

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

Color values

HEX#9D288B
RGBrgb(157, 40, 139)
HSLhsl(309, 59%, 39%)
HSVhsv(309, 75%, 62%)
CMYKcmyk(0%, 74.5%, 11.5%, 38.4%)
CIE-LABlab(38.81, 57.74, -28.67)
CIE-LCHlch(38.81, 64.46, 333.59°)
OKLaboklab(49.71% 0.1685 -0.0784)
OKLCHoklch(49.71% 0.186 335.1)
XYZxyz(19.3239, 10.5515, 25.4400)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D288B #289D3A
analogous
#74289D #9D288B #9D2850
triadic
#9D288B #8B9D28 #288B9D
tetradic
#9D288B #9D7428 #289D3A #28509D
square
#9D288B #9D7428 #289D3A #28509D
split-complementary
#9D288B #509D28 #289D74
monochromatic
#3B0F35 #6C1C60 #9D288B #CC36B5 #D867C7

Accessibility & contrast

On white

6.75
#9D288B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9D288B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D288B
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D288B#FFFFFF#000000##FFFFFF
##9D288B1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508E
Deuteranopia (green-blind)
#516288
Tritanopia (blue-blind)
#A53257
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d288b;
/* rgb */ color: rgb(157, 40, 139);
/* oklch */ color: oklch(49.7% 0.186 335.1);
Tailwind
colors: {
  custom: {
    50: '#be6ead',
    500: '#9d288b',
    950: '#000000',
  },
}
SCSS
$custom: #9d288b;
$custom-light: #be6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#9d288b",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 309.231,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.49712,
    "c": 0.1858,
    "h": 335.1
  },
  "luminance": 0.1055
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D288B

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

Preview Lab → · Contrast checker → · Palette generator →

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