#9E1F54#9E1F54

#9E1F54 is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.8% C 0.166 H 1.4°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#9E1F54
RGBrgb(158, 31, 84)
HSLhsl(335, 67%, 37%)
HSVhsv(335, 80%, 62%)
CMYKcmyk(0%, 80.4%, 46.8%, 38%)
CIE-LABlab(35.77, 54.01, 1.35)
CIE-LCHlch(35.77, 54.03, 1.43°)
OKLaboklab(46.81% 0.1659 0.0041)
OKLCHoklch(46.81% 0.166 1.4)
XYZxyz(16.1921, 8.8914, 9.2493)
Luminance0.0889 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F54 #1F9E69
analogous
#9E1F94 #9E1F54 #9E2A1F
triadic
#9E1F54 #549E1F #1F549E
tetradic
#9E1F54 #949E1F #1F9E69 #2A1F9E
square
#9E1F54 #949E1F #1F9E69 #2A1F9E
split-complementary
#9E1F54 #1F9E2A #1F949E
monochromatic
#380B1E #6B1539 #9E1F54 #D1296F #DE5991

Accessibility & contrast

On white

7.56
#9E1F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#9E1F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F54
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F54#FFFFFF#000000##FFFFFF
##9E1F541.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4555
Deuteranopia (green-blind)
#605D51
Tritanopia (blue-blind)
#AC0037
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9e1f54;
/* rgb */ color: rgb(158, 31, 84);
/* oklch */ color: oklch(46.8% 0.166 1.4);
Tailwind
colors: {
  custom: {
    50: '#c06983',
    500: '#9e1f54',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f54;
$custom-light: #c06983;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f54",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 334.961,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46806,
    "c": 0.16593,
    "h": 1.4
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

primary
#9E1F54
secondary
#56C295
accent
#EAA23E
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070A
muted
#827A7C

Preview Lab

Preview with #9E1F54

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

Preview Lab → · Contrast checker → · Palette generator →

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