#9E1F7E#9E1F7E

#9E1F7E is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.5% C 0.187 H 340.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#9E1F7E
RGBrgb(158, 31, 126)
HSLhsl(315, 67%, 37%)
HSVhsv(315, 80%, 62%)
CMYKcmyk(0%, 80.4%, 20.3%, 38%)
CIE-LABlab(37.40, 58.83, -22.84)
CIE-LCHlch(37.40, 63.11, 338.79°)
OKLaboklab(48.52% 0.1763 -0.0616)
OKLCHoklch(48.52% 0.187 340.7)
XYZxyz(18.3570, 9.7573, 20.6512)
Luminance0.0975 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F7E #1F9E3F
analogous
#7F1F9E #9E1F7E #9E1F3F
triadic
#9E1F7E #7E9E1F #1F7E9E
tetradic
#9E1F7E #9E7F1F #1F9E3F #1F3F9E
square
#9E1F7E #9E7F1F #1F9E3F #1F3F9E
split-complementary
#9E1F7E #3F9E1F #1F9E7F
monochromatic
#380B2C #6B1555 #9E1F7E #D129A7 #DE59BD

Accessibility & contrast

On white

7.12
#9E1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E1F7E
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F7E#FFFFFF#000000##FFFFFF
##9E1F7E1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#555F7B
Tritanopia (blue-blind)
#A8234D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e1f7e;
/* rgb */ color: rgb(158, 31, 126);
/* oklch */ color: oklch(48.5% 0.187 340.7);
Tailwind
colors: {
  custom: {
    50: '#bf6aa3',
    500: '#9e1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f7e;
$custom-light: #bf6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f7e",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 315.118,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48522,
    "c": 0.18672,
    "h": 340.7
  },
  "luminance": 0.09755
}

Semantic roles & 50–950 ramp

primary
#9E1F7E
secondary
#56C272
accent
#EA693E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9E1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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