#9E1F71#9E1F71

#9E1F71 is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.9% C 0.179 H 346.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#9E1F71
RGBrgb(158, 31, 113)
HSLhsl(321, 67%, 37%)
HSVhsv(321, 80%, 62%)
CMYKcmyk(0%, 80.4%, 28.5%, 38%)
CIE-LABlab(36.82, 57.15, -15.59)
CIE-LCHlch(36.82, 59.24, 344.74°)
OKLaboklab(47.92% 0.1741 -0.0413)
OKLCHoklch(47.92% 0.179 346.7)
XYZxyz(17.5720, 9.4433, 16.5170)
Luminance0.0944 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F71 #1F9E4C
analogous
#8C1F9E #9E1F71 #9E1F31
triadic
#9E1F71 #719E1F #1F719E
tetradic
#9E1F71 #9E8C1F #1F9E4C #1F319E
square
#9E1F71 #9E8C1F #1F9E4C #1F319E
split-complementary
#9E1F71 #319E1F #1F9E8C
monochromatic
#380B28 #6B154C #9E1F71 #D12996 #DE59AF

Accessibility & contrast

On white

7.27
#9E1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#9E1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F71
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F71#FFFFFF#000000##FFFFFF
##9E1F711.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#595E6E
Tritanopia (blue-blind)
#A91A46
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9e1f71;
/* rgb */ color: rgb(158, 31, 113);
/* oklch */ color: oklch(47.9% 0.179 346.7);
Tailwind
colors: {
  custom: {
    50: '#bf6a9a',
    500: '#9e1f71',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f71;
$custom-light: #bf6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f71",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 321.26,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47915,
    "c": 0.17889,
    "h": 346.7
  },
  "luminance": 0.09441
}

Semantic roles & 50–950 ramp

primary
#9E1F71
secondary
#56C27D
accent
#EA7B3E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9E1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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