#9D158B#9D158B

#9D158B is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.5% C 0.203 H 334.8°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9D158B
RGBrgb(157, 21, 139)
HSLhsl(308, 76%, 35%)
HSVhsv(308, 87%, 62%)
CMYKcmyk(0%, 86.6%, 11.5%, 38.4%)
CIE-LABlab(37.06, 62.79, -31.44)
CIE-LCHlch(37.06, 70.22, 333.41°)
OKLaboklab(48.46% 0.1834 -0.0862)
OKLCHoklch(48.46% 0.203 334.8)
XYZxyz(18.8333, 9.5703, 25.2765)
Luminance0.0957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D158B #159D27
analogous
#6B159D #9D158B #9D1547
triadic
#9D158B #8B9D15 #158B9D
tetradic
#9D158B #9D6B15 #159D27 #15479D
square
#9D158B #9D6B15 #159D27 #15479D
split-complementary
#9D158B #479D15 #159D6B
monochromatic
#31072B #670E5B #9D158B #D31CBB #E646D1

Accessibility & contrast

On white

7.21
#9D158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D158B
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D158B#FFFFFF#000000##FFFFFF
##9D158B1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#4C5E88
Tritanopia (blue-blind)
#A52552
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9d158b;
/* rgb */ color: rgb(157, 21, 139);
/* oklch */ color: oklch(48.5% 0.203 334.8);
Tailwind
colors: {
  custom: {
    50: '#be68ad',
    500: '#9d158b',
    950: '#000000',
  },
}
SCSS
$custom: #9d158b;
$custom-light: #be68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d158b",
  "rgb": {
    "r": 157,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 307.941,
    "s": 76.404,
    "l": 34.902
  },
  "oklch": {
    "l": 0.48455,
    "c": 0.20268,
    "h": 334.8
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#9D158B
secondary
#47C758
accent
#F34E35
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D158B

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

Preview Lab → · Contrast checker → · Palette generator →

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