#9D1897#9D1897

#9D1897 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.209 H 330.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9D1897
RGBrgb(157, 24, 151)
HSLhsl(303, 73%, 35%)
HSVhsv(303, 85%, 62%)
CMYKcmyk(0%, 84.7%, 3.8%, 38.4%)
CIE-LABlab(37.95, 63.96, -37.38)
CIE-LCHlch(37.95, 74.08, 329.70°)
OKLaboklab(49.3% 0.1816 -0.1034)
OKLCHoklch(49.3% 0.209 330.3)
XYZxyz(19.8171, 10.0574, 30.1697)
Luminance0.1006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1897 #189D1E
analogous
#61189D #9D1897 #9D1854
triadic
#9D1897 #979D18 #18979D
tetradic
#9D1897 #9D6118 #189D1E #18549D
square
#9D1897 #9D6118 #189D1E #18549D
split-complementary
#9D1897 #549D18 #189D61
monochromatic
#330831 #681064 #9D1897 #D220CA #E44CDD

Accessibility & contrast

On white

6.97
#9D1897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9D1897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1897
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1897#FFFFFF#000000##FFFFFF
##9D18971.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#465F94
Tritanopia (blue-blind)
#A32E5A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1897;
/* rgb */ color: rgb(157, 24, 151);
/* oklch */ color: oklch(49.3% 0.209 330.3);
Tailwind
colors: {
  custom: {
    50: '#be69b6',
    500: '#9d1897',
    950: '#000000',
  },
}
SCSS
$custom: #9d1897;
$custom-light: #be69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1897",
  "rgb": {
    "r": 157,
    "g": 24,
    "b": 151
  },
  "hsl": {
    "h": 302.707,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.49301,
    "c": 0.20895,
    "h": 330.3
  },
  "luminance": 0.10056
}

Semantic roles & 50–950 ramp

primary
#9D1897
secondary
#4BC551
accent
#F04038
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9D1897

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

Preview Lab → · Contrast checker → · Palette generator →

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