#9D158A#9D158A

#9D158A is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.4% C 0.202 H 335.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#9D158A
RGBrgb(157, 21, 138)
HSLhsl(308, 76%, 35%)
HSVhsv(308, 87%, 62%)
CMYKcmyk(0%, 86.6%, 12.1%, 38.4%)
CIE-LABlab(37.01, 62.65, -30.90)
CIE-LCHlch(37.01, 69.85, 333.74°)
OKLaboklab(48.4% 0.1834 -0.0846)
OKLCHoklch(48.4% 0.202 335.2)
XYZxyz(18.7605, 9.5412, 24.8934)
Luminance0.0954 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D158A #159D28
analogous
#6C159D #9D158A #9D1546
triadic
#9D158A #8A9D15 #158A9D
tetradic
#9D158A #9D6C15 #159D28 #15469D
square
#9D158A #9D6C15 #159D28 #15469D
split-complementary
#9D158A #469D15 #159D6C
monochromatic
#31072B #670E5B #9D158A #D31CB9 #E646D0

Accessibility & contrast

On white

7.22
#9D158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9D158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D158A
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D158A#FFFFFF#000000##FFFFFF
##9D158A1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8D
Deuteranopia (green-blind)
#4C5E87
Tritanopia (blue-blind)
#A52452
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d158a;
/* rgb */ color: rgb(157, 21, 138);
/* oklch */ color: oklch(48.4% 0.202 335.2);
Tailwind
colors: {
  custom: {
    50: '#be68ac',
    500: '#9d158a',
    950: '#000000',
  },
}
SCSS
$custom: #9d158a;
$custom-light: #be68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d158a",
  "rgb": {
    "r": 157,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 308.382,
    "s": 76.404,
    "l": 34.902
  },
  "oklch": {
    "l": 0.48399,
    "c": 0.202,
    "h": 335.2
  },
  "luminance": 0.09539
}

Semantic roles & 50–950 ramp

primary
#9D158A
secondary
#47C759
accent
#F34F35
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D158A

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

Preview Lab → · Contrast checker → · Palette generator →

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