#9E1F7D#9E1F7D

#9E1F7D is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.5% C 0.186 H 341.2°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#9E1F7D
RGBrgb(158, 31, 125)
HSLhsl(316, 67%, 37%)
HSVhsv(316, 80%, 62%)
CMYKcmyk(0%, 80.4%, 20.9%, 38%)
CIE-LABlab(37.36, 58.70, -22.29)
CIE-LCHlch(37.36, 62.78, 339.21°)
OKLaboklab(48.47% 0.1761 -0.0601)
OKLCHoklch(48.47% 0.186 341.2)
XYZxyz(18.2928, 9.7317, 20.3131)
Luminance0.0973 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F7D #1F9E40
analogous
#801F9E #9E1F7D #9E1F3D
triadic
#9E1F7D #7D9E1F #1F7D9E
tetradic
#9E1F7D #9E801F #1F9E40 #1F3D9E
square
#9E1F7D #9E801F #1F9E40 #1F3D9E
split-complementary
#9E1F7D #3D9E1F #1F9E80
monochromatic
#380B2C #6B1555 #9E1F7D #D129A5 #DE59BC

Accessibility & contrast

On white

7.13
#9E1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9E1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F7D
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F7D#FFFFFF#000000##FFFFFF
##9E1F7D1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B7F
Deuteranopia (green-blind)
#555F7A
Tritanopia (blue-blind)
#A8224D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e1f7d;
/* rgb */ color: rgb(158, 31, 125);
/* oklch */ color: oklch(48.5% 0.186 341.2);
Tailwind
colors: {
  custom: {
    50: '#bf6aa3',
    500: '#9e1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f7d;
$custom-light: #bf6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f7d",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 315.591,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48473,
    "c": 0.18608,
    "h": 341.2
  },
  "luminance": 0.0973
}

Semantic roles & 50–950 ramp

primary
#9E1F7D
secondary
#56C273
accent
#EA6B3E
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9E1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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