#9E1771#9E1771

#9E1771 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.4% C 0.186 H 346.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#9E1771
RGBrgb(158, 23, 113)
HSLhsl(320, 75%, 35%)
HSVhsv(320, 85%, 62%)
CMYKcmyk(0%, 85.4%, 28.5%, 38%)
CIE-LABlab(36.13, 59.14, -16.65)
CIE-LCHlch(36.13, 61.44, 344.27°)
OKLaboklab(47.41% 0.1803 -0.0442)
OKLCHoklch(47.41% 0.186 346.2)
XYZxyz(17.3885, 9.0762, 16.4558)
Luminance0.0907 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1771 #179E44
analogous
#87179E #9E1771 #9E172D
triadic
#9E1771 #719E17 #17719E
tetradic
#9E1771 #9E8717 #179E44 #172D9E
square
#9E1771 #9E8717 #179E44 #172D9E
split-complementary
#9E1771 #2D9E17 #179E87
monochromatic
#330725 #690F4B #9E1771 #D31F97 #E54BB1

Accessibility & contrast

On white

7.46
#9E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#9E1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1771
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1771#FFFFFF#000000##FFFFFF
##9E17711.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#575D6E
Tritanopia (blue-blind)
#A91144
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9e1771;
/* rgb */ color: rgb(158, 23, 113);
/* oklch */ color: oklch(47.4% 0.186 346.2);
Tailwind
colors: {
  custom: {
    50: '#bf679a',
    500: '#9e1771',
    950: '#000000',
  },
}
SCSS
$custom: #9e1771;
$custom-light: #bf679a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1771",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 320,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47413,
    "c": 0.18563,
    "h": 346.2
  },
  "luminance": 0.09074
}

Semantic roles & 50–950 ramp

primary
#9E1771
secondary
#4AC674
accent
#F17537
background
#FCF6F9
surface
#F8EBF2
border
#D1C6CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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