#9E1F52#9E1F52

#9E1F52 is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.7% C 0.165 H 2.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#9E1F52
RGBrgb(158, 31, 82)
HSLhsl(336, 67%, 37%)
HSVhsv(336, 80%, 62%)
CMYKcmyk(0%, 80.4%, 48.1%, 38%)
CIE-LABlab(35.71, 53.83, 2.55)
CIE-LCHlch(35.71, 53.89, 2.71°)
OKLaboklab(46.74% 0.1652 0.0071)
OKLCHoklch(46.74% 0.165 2.5)
XYZxyz(16.1149, 8.8605, 8.8427)
Luminance0.0886 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F52 #1F9E6B
analogous
#9E1F91 #9E1F52 #9E2C1F
triadic
#9E1F52 #529E1F #1F529E
tetradic
#9E1F52 #919E1F #1F9E6B #2C1F9E
square
#9E1F52 #919E1F #1F9E6B #2C1F9E
split-complementary
#9E1F52 #1F9E2C #1F919E
monochromatic
#380B1D #6B1537 #9E1F52 #D1296D #DE598F

Accessibility & contrast

On white

7.58
#9E1F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#9E1F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F52
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F52#FFFFFF#000000##FFFFFF
##9E1F521.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F4453
Deuteranopia (green-blind)
#605D4F
Tritanopia (blue-blind)
#AC0036
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9e1f52;
/* rgb */ color: rgb(158, 31, 82);
/* oklch */ color: oklch(46.7% 0.165 2.5);
Tailwind
colors: {
  custom: {
    50: '#c06982',
    500: '#9e1f52',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f52;
$custom-light: #c06982;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f52",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 335.906,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46742,
    "c": 0.16532,
    "h": 2.5
  },
  "luminance": 0.08858
}

Semantic roles & 50–950 ramp

primary
#9E1F52
secondary
#56C297
accent
#EAA53E
background
#FCF6F7
surface
#F8ECEE
border
#D1C7C9
text
#13070A
muted
#827A7C

Preview Lab

Preview with #9E1F52

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

Preview Lab → · Contrast checker → · Palette generator →

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