#9D1F88#9D1F88

#9D1F88 is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.9% C 0.193 H 336.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9D1F88
RGBrgb(157, 31, 136)
HSLhsl(310, 67%, 37%)
HSVhsv(310, 80%, 62%)
CMYKcmyk(0%, 80.3%, 13.4%, 38.4%)
CIE-LABlab(37.71, 60.01, -28.56)
CIE-LCHlch(37.71, 66.46, 334.55°)
OKLaboklab(48.87% 0.1763 -0.078)
OKLCHoklch(48.87% 0.193 336.1)
XYZxyz(18.8389, 9.9274, 24.2118)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F88 #1F9D34
analogous
#731F9D #9D1F88 #9D1F49
triadic
#9D1F88 #889D1F #1F889D
tetradic
#9D1F88 #9D731F #1F9D34 #1F499D
square
#9D1F88 #9D731F #1F9D34 #1F499D
split-complementary
#9D1F88 #499D1F #1F9D73
monochromatic
#370B2F #6A155C #9D1F88 #D029B4 #DE58C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D1F88#FFFFFF#000000##FFFFFF
##9D1F881.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)
#214D8B
Deuteranopia (green-blind)
#505F85
Tritanopia (blue-blind)
#A52953
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1f88;
/* rgb */ color: rgb(157, 31, 136);
/* oklch */ color: oklch(48.9% 0.193 336.1);
Tailwind
colors: {
  custom: {
    50: '#be6bab',
    500: '#9d1f88',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f88;
$custom-light: #be6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f88",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 310,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4887,
    "c": 0.19278,
    "h": 336.1
  },
  "luminance": 0.09926
}

Semantic roles & 50–950 ramp

primary
#9D1F88
secondary
#56C268
accent
#EA5B3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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