#9E1F4D#9E1F4D

#9E1F4D is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.6% C 0.164 H 5.1°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#9E1F4D
RGBrgb(158, 31, 77)
HSLhsl(338, 67%, 37%)
HSVhsv(338, 80%, 62%)
CMYKcmyk(0%, 80.4%, 51.3%, 38%)
CIE-LABlab(35.57, 53.39, 5.58)
CIE-LCHlch(35.57, 53.68, 5.97°)
OKLaboklab(46.59% 0.1633 0.0147)
OKLCHoklch(46.59% 0.164 5.1)
XYZxyz(15.9315, 8.7871, 7.8769)
Luminance0.0878 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F4D #1F9E70
analogous
#9E1F8D #9E1F4D #9E311F
triadic
#9E1F4D #4D9E1F #1F4D9E
tetradic
#9E1F4D #8D9E1F #1F9E70 #311F9E
square
#9E1F4D #8D9E1F #1F9E70 #311F9E
split-complementary
#9E1F4D #1F9E31 #1F8D9E
monochromatic
#380B1B #6B1534 #9E1F4D #D12966 #DE5989

Accessibility & contrast

On white

7.62
#9E1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#9E1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F4D
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F4D#FFFFFF#000000##FFFFFF
##9E1F4D1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40444E
Deuteranopia (green-blind)
#615D4A
Tritanopia (blue-blind)
#AC0033
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9e1f4d;
/* rgb */ color: rgb(158, 31, 77);
/* oklch */ color: oklch(46.6% 0.164 5.1);
Tailwind
colors: {
  custom: {
    50: '#c1697e',
    500: '#9e1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f4d;
$custom-light: #c1697e;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f4d",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 338.268,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46591,
    "c": 0.164,
    "h": 5.1
  },
  "luminance": 0.08785
}

Semantic roles & 50–950 ramp

primary
#9E1F4D
secondary
#56C29B
accent
#EAAC3E
background
#FCF6F7
surface
#F8ECEE
border
#D1C7C9
text
#130709
muted
#827A7B

Preview Lab

Preview with #9E1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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