#9E1F7A#9E1F7A

#9E1F7A is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.3% C 0.184 H 342.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#9E1F7A
RGBrgb(158, 31, 122)
HSLhsl(317, 67%, 37%)
HSVhsv(317, 80%, 62%)
CMYKcmyk(0%, 80.4%, 22.8%, 38%)
CIE-LABlab(37.22, 58.30, -20.63)
CIE-LCHlch(37.22, 61.84, 340.51°)
OKLaboklab(48.33% 0.1757 -0.0554)
OKLCHoklch(48.33% 0.184 342.5)
XYZxyz(18.1041, 9.6562, 19.3190)
Luminance0.0965 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F7A #1F9E43
analogous
#831F9E #9E1F7A #9E1F3A
triadic
#9E1F7A #7A9E1F #1F7A9E
tetradic
#9E1F7A #9E831F #1F9E43 #1F3A9E
square
#9E1F7A #9E831F #1F9E43 #1F3A9E
split-complementary
#9E1F7A #3A9E1F #1F9E83
monochromatic
#380B2B #6B1552 #9E1F7A #D129A2 #DE59B9

Accessibility & contrast

On white

7.17
#9E1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9E1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F7A
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F7A#FFFFFF#000000##FFFFFF
##9E1F7A1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7C
Deuteranopia (green-blind)
#565F77
Tritanopia (blue-blind)
#A8204B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e1f7a;
/* rgb */ color: rgb(158, 31, 122);
/* oklch */ color: oklch(48.3% 0.184 342.5);
Tailwind
colors: {
  custom: {
    50: '#bf6aa0',
    500: '#9e1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f7a;
$custom-light: #bf6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f7a",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 317.008,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48328,
    "c": 0.1842,
    "h": 342.5
  },
  "luminance": 0.09654
}

Semantic roles & 50–950 ramp

primary
#9E1F7A
secondary
#56C275
accent
#EA6F3E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9E1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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