#9E2771#9E2771

#9E2771 is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.5% C 0.171 H 347.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9E2771
RGBrgb(158, 39, 113)
HSLhsl(323, 60%, 39%)
HSVhsv(323, 75%, 62%)
CMYKcmyk(0%, 75.3%, 28.5%, 38%)
CIE-LABlab(37.69, 54.69, -14.27)
CIE-LCHlch(37.69, 56.52, 345.38°)
OKLaboklab(48.54% 0.1664 -0.0377)
OKLCHoklch(48.54% 0.171 347.2)
XYZxyz(17.8076, 9.9144, 16.5955)
Luminance0.0991 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2771 #279E54
analogous
#8F279E #9E2771 #9E2735
triadic
#9E2771 #719E27 #27719E
tetradic
#9E2771 #9E8F27 #279E54 #27359E
square
#9E2771 #9E8F27 #279E54 #27359E
split-complementary
#9E2771 #359E27 #279E8F
monochromatic
#3C0F2B #6D1B4E #9E2771 #CD3594 #D966AE

Accessibility & contrast

On white

7.04
#9E2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9E2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E2771
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2771#FFFFFF#000000##FFFFFF
##9E27711.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C73
Deuteranopia (green-blind)
#5B606E
Tritanopia (blue-blind)
#A92349
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e2771;
/* rgb */ color: rgb(158, 39, 113);
/* oklch */ color: oklch(48.5% 0.171 347.2);
Tailwind
colors: {
  custom: {
    50: '#bf6d9a',
    500: '#9e2771',
    950: '#000000',
  },
}
SCSS
$custom: #9e2771;
$custom-light: #bf6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2771",
  "rgb": {
    "r": 158,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 322.689,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48542,
    "c": 0.17061,
    "h": 347.2
  },
  "luminance": 0.09912
}

Semantic roles & 50–950 ramp

primary
#9E2771
secondary
#62BF85
accent
#E48044
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9E2771

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

Preview Lab → · Contrast checker → · Palette generator →

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