#9D1B8F#9D1B8F

#9D1B8F is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.0% C 0.201 H 333.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9D1B8F
RGBrgb(157, 27, 143)
HSLhsl(306, 71%, 36%)
HSVhsv(306, 83%, 62%)
CMYKcmyk(0%, 82.8%, 8.9%, 38.4%)
CIE-LABlab(37.73, 62.06, -32.84)
CIE-LCHlch(37.73, 70.21, 332.12°)
OKLaboklab(49% 0.1797 -0.0902)
OKLCHoklch(49% 0.201 333.3)
XYZxyz(19.2546, 9.9369, 26.8852)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B8F #1B9D29
analogous
#6A1B9D #9D1B8F #9D1B4E
triadic
#9D1B8F #8F9D1B #1B8F9D
tetradic
#9D1B8F #9D6A1B #1B9D29 #1B4E9D
square
#9D1B8F #9D6A1B #1B9D29 #1B4E9D
split-complementary
#9D1B8F #4E9D1B #1B9D6A
monochromatic
#350930 #69125F #9D1B8F #D124BF #E151D2

Accessibility & contrast

On white

7.03
#9D1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D1B8F
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B8F#FFFFFF#000000##FFFFFF
##9D1B8F1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134D92
Deuteranopia (green-blind)
#4B5F8C
Tritanopia (blue-blind)
#A42B56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1b8f;
/* rgb */ color: rgb(157, 27, 143);
/* oklch */ color: oklch(49.0% 0.201 333.3);
Tailwind
colors: {
  custom: {
    50: '#be6ab0',
    500: '#9d1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b8f;
$custom-light: #be6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b8f",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 306.462,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.49002,
    "c": 0.20105,
    "h": 333.3
  },
  "luminance": 0.09935
}

Semantic roles & 50–950 ramp

primary
#9D1B8F
secondary
#50C45C
accent
#ED4E3A
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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