#9D1795#9D1795

#9D1795 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.208 H 331.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#9D1795
RGBrgb(157, 23, 149)
HSLhsl(304, 74%, 35%)
HSVhsv(304, 85%, 62%)
CMYKcmyk(0%, 85.4%, 5.1%, 38.4%)
CIE-LABlab(37.76, 63.87, -36.46)
CIE-LCHlch(37.76, 73.54, 330.28°)
OKLaboklab(49.13% 0.1823 -0.1007)
OKLCHoklch(49.13% 0.208 331.1)
XYZxyz(19.6358, 9.9525, 29.3148)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1795 #179D1F
analogous
#62179D #9D1795 #9D1752
triadic
#9D1795 #959D17 #17959D
tetradic
#9D1795 #9D6217 #179D1F #17529D
square
#9D1795 #9D6217 #179D1F #17529D
split-complementary
#9D1795 #529D17 #179D62
monochromatic
#320730 #680F62 #9D1795 #D21FC8 #E44ADB

Accessibility & contrast

On white

7.02
#9D1795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9D1795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1795
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1795#FFFFFF#000000##FFFFFF
##9D17951.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#475F92
Tritanopia (blue-blind)
#A42D59
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1795;
/* rgb */ color: rgb(157, 23, 149);
/* oklch */ color: oklch(49.1% 0.208 331.1);
Tailwind
colors: {
  custom: {
    50: '#be69b4',
    500: '#9d1795',
    950: '#000000',
  },
}
SCSS
$custom: #9d1795;
$custom-light: #be69b4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1795",
  "rgb": {
    "r": 157,
    "g": 23,
    "b": 149
  },
  "hsl": {
    "h": 303.582,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4913,
    "c": 0.20823,
    "h": 331.1
  },
  "luminance": 0.09951
}

Semantic roles & 50–950 ramp

primary
#9D1795
secondary
#4AC651
accent
#F14237
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9D1795

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

Preview Lab → · Contrast checker → · Palette generator →

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