#9D168B#9D168B

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

Color values

HEX#9D168B
RGBrgb(157, 22, 139)
HSLhsl(308, 75%, 35%)
HSVhsv(308, 86%, 62%)
CMYKcmyk(0%, 86%, 11.5%, 38.4%)
CIE-LABlab(37.13, 62.59, -31.33)
CIE-LCHlch(37.13, 69.99, 333.41°)
OKLaboklab(48.5% 0.1828 -0.0859)
OKLCHoklch(48.5% 0.202 334.8)
XYZxyz(18.8520, 9.6078, 25.2827)
Luminance0.0961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D168B #169D28
analogous
#6B169D #9D168B #9D1647
triadic
#9D168B #8B9D16 #168B9D
tetradic
#9D168B #9D6B16 #169D28 #16479D
square
#9D168B #9D6B16 #169D28 #16479D
split-complementary
#9D168B #479D16 #169D6B
monochromatic
#32072C #670E5B #9D168B #D31EBB #E548D0

Accessibility & contrast

On white

7.19
#9D168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9D168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D168B
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D168B#FFFFFF#000000##FFFFFF
##9D168B1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d168b;
/* rgb */ color: rgb(157, 22, 139);
/* oklch */ color: oklch(48.5% 0.202 334.8);
Tailwind
colors: {
  custom: {
    50: '#be68ad',
    500: '#9d168b',
    950: '#000000',
  },
}
SCSS
$custom: #9d168b;
$custom-light: #be68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d168b",
  "rgb": {
    "r": 157,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 308,
    "s": 75.419,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48504,
    "c": 0.202,
    "h": 334.8
  },
  "luminance": 0.09606
}

Semantic roles & 50–950 ramp

primary
#9D168B
secondary
#48C759
accent
#F24F36
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D168B

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

Preview Lab → · Contrast checker → · Palette generator →

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