#9E1F5F#9E1F5F

#9E1F5F is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.2% C 0.170 H 355.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#9E1F5F
RGBrgb(158, 31, 95)
HSLhsl(330, 67%, 37%)
HSVhsv(330, 80%, 62%)
CMYKcmyk(0%, 80.4%, 39.9%, 38%)
CIE-LABlab(36.13, 55.10, -5.20)
CIE-LCHlch(36.13, 55.34, 354.61°)
OKLaboklab(47.19% 0.1695 -0.013)
OKLCHoklch(47.19% 0.17 355.6)
XYZxyz(16.6573, 9.0774, 11.6992)
Luminance0.0907 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F5F #1F9E5E
analogous
#9E1F9E #9E1F5F #9E1F1F
triadic
#9E1F5F #5F9E1F #1F5F9E
tetradic
#9E1F5F #9E9E1F #1F9E5E #1F1F9E
square
#9E1F5F #9E9E1F #1F9E5E #1F1F9E
split-complementary
#9E1F5F #1F9E1F #1F9E9E
monochromatic
#380B21 #6B1540 #9E1F5F #D1297E #DE599C

Accessibility & contrast

On white

7.46
#9E1F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#9E1F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F5F
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F5F#FFFFFF#000000##FFFFFF
##9E1F5F1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4661
Deuteranopia (green-blind)
#5E5D5C
Tritanopia (blue-blind)
#AB093C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9e1f5f;
/* rgb */ color: rgb(158, 31, 95);
/* oklch */ color: oklch(47.2% 0.170 355.6);
Tailwind
colors: {
  custom: {
    50: '#c0698c',
    500: '#9e1f5f',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f5f;
$custom-light: #c0698c;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f5f",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 329.764,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47186,
    "c": 0.16997,
    "h": 355.6
  },
  "luminance": 0.09075
}

Semantic roles & 50–950 ramp

primary
#9E1F5F
secondary
#56C28C
accent
#EA933E
background
#FCF6F8
surface
#F8ECF0
border
#D1C7CB
text
#13070C
muted
#827A7D

Preview Lab

Preview with #9E1F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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