#9D168A#9D168A

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

Color values

HEX#9D168A
RGBrgb(157, 22, 138)
HSLhsl(308, 75%, 35%)
HSVhsv(308, 86%, 62%)
CMYKcmyk(0%, 86%, 12.1%, 38.4%)
CIE-LABlab(37.08, 62.44, -30.79)
CIE-LCHlch(37.08, 69.62, 333.75°)
OKLaboklab(48.45% 0.1828 -0.0843)
OKLCHoklch(48.45% 0.201 335.2)
XYZxyz(18.7793, 9.5787, 24.8997)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D168A #169D29
analogous
#6C169D #9D168A #9D1647
triadic
#9D168A #8A9D16 #168A9D
tetradic
#9D168A #9D6C16 #169D29 #16479D
square
#9D168A #9D6C16 #169D29 #16479D
split-complementary
#9D168A #479D16 #169D6C
monochromatic
#32072C #670E5B #9D168A #D31EB9 #E548CF

Accessibility & contrast

On white

7.20
#9D168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D168A
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D168A#FFFFFF#000000##FFFFFF
##9D168A1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d168a;
/* rgb */ color: rgb(157, 22, 138);
/* oklch */ color: oklch(48.4% 0.201 335.2);
Tailwind
colors: {
  custom: {
    50: '#be68ac',
    500: '#9d168a',
    950: '#000000',
  },
}
SCSS
$custom: #9d168a;
$custom-light: #be68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d168a",
  "rgb": {
    "r": 157,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 308.444,
    "s": 75.419,
    "l": 35.098
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.20132,
    "h": 335.2
  },
  "luminance": 0.09577
}

Semantic roles & 50–950 ramp

primary
#9D168A
secondary
#48C75A
accent
#F25036
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D168A

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

Preview Lab → · Contrast checker → · Palette generator →

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