#9D1796#9D1796

#9D1796 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.209 H 330.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#9D1796
RGBrgb(157, 23, 150)
HSLhsl(303, 74%, 35%)
HSVhsv(303, 85%, 62%)
CMYKcmyk(0%, 85.4%, 4.5%, 38.4%)
CIE-LABlab(37.81, 64.02, -36.98)
CIE-LCHlch(37.81, 73.93, 329.99°)
OKLaboklab(49.19% 0.1822 -0.1022)
OKLCHoklch(49.19% 0.209 330.7)
XYZxyz(19.7160, 9.9846, 29.7371)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1796 #179D1E
analogous
#61179D #9D1796 #9D1753
triadic
#9D1796 #969D17 #17969D
tetradic
#9D1796 #9D6117 #179D1E #17539D
square
#9D1796 #9D6117 #179D1E #17539D
split-complementary
#9D1796 #539D17 #179D61
monochromatic
#320730 #680F63 #9D1796 #D21FC9 #E44ADC

Accessibility & contrast

On white

7.01
#9D1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#9D1796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1796
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1796#FFFFFF#000000##FFFFFF
##9D17961.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#465F93
Tritanopia (blue-blind)
#A32D59
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1796;
/* rgb */ color: rgb(157, 23, 150);
/* oklch */ color: oklch(49.2% 0.209 330.7);
Tailwind
colors: {
  custom: {
    50: '#be69b5',
    500: '#9d1796',
    950: '#000000',
  },
}
SCSS
$custom: #9d1796;
$custom-light: #be69b5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1796",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 303.134,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4919,
    "c": 0.20893,
    "h": 330.7
  },
  "luminance": 0.09983
}

Semantic roles & 50–950 ramp

primary
#9D1796
secondary
#4AC650
accent
#F14037
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9D1796

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

Preview Lab → · Contrast checker → · Palette generator →

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