#9E1F5A#9E1F5A

#9E1F5A is a mid, vivid pink. Relative luminance 0.090; OKLCH L 47.0% C 0.168 H 358.2°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#9E1F5A
RGBrgb(158, 31, 90)
HSLhsl(332, 67%, 37%)
HSVhsv(332, 80%, 62%)
CMYKcmyk(0%, 80.4%, 43%, 38%)
CIE-LABlab(35.96, 54.59, -2.24)
CIE-LCHlch(35.96, 54.63, 357.65°)
OKLaboklab(47.01% 0.1679 -0.0052)
OKLCHoklch(47.01% 0.168 358.2)
XYZxyz(16.4373, 8.9894, 10.5404)
Luminance0.0899 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F5A #1F9E63
analogous
#9E1F9A #9E1F5A #9E231F
triadic
#9E1F5A #5A9E1F #1F5A9E
tetradic
#9E1F5A #9A9E1F #1F9E63 #231F9E
square
#9E1F5A #9A9E1F #1F9E63 #231F9E
split-complementary
#9E1F5A #1F9E23 #1F9A9E
monochromatic
#380B20 #6B153D #9E1F5A #D12977 #DE5997

Accessibility & contrast

On white

7.51
#9E1F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#9E1F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F5A
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F5A#FFFFFF#000000##FFFFFF
##9E1F5A1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C455B
Deuteranopia (green-blind)
#5F5D57
Tritanopia (blue-blind)
#AC033A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9e1f5a;
/* rgb */ color: rgb(158, 31, 90);
/* oklch */ color: oklch(47.0% 0.168 358.2);
Tailwind
colors: {
  custom: {
    50: '#c06988',
    500: '#9e1f5a',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f5a;
$custom-light: #c06988;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f5a",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 332.126,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47007,
    "c": 0.16799,
    "h": 358.2
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#9E1F5A
secondary
#56C290
accent
#EA9A3E
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9E1F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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