#9E157F#9E157F

#9E157F is a mid, vivid pink. Relative luminance 0.093; OKLCH L 48.0% C 0.195 H 340.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#9E157F
RGBrgb(158, 21, 127)
HSLhsl(314, 77%, 35%)
HSVhsv(314, 87%, 62%)
CMYKcmyk(0%, 86.7%, 19.6%, 38%)
CIE-LABlab(36.63, 61.34, -24.66)
CIE-LCHlch(36.63, 66.11, 338.10°)
OKLaboklab(47.98% 0.1836 -0.0667)
OKLCHoklch(47.98% 0.195 340)
XYZxyz(18.2001, 9.3397, 20.9188)
Luminance0.0934 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E157F #159E34
analogous
#79159E #9E157F #9E153A
triadic
#9E157F #7F9E15 #157F9E
tetradic
#9E157F #9E7915 #159E34 #153A9E
square
#9E157F #9E7915 #159E34 #153A9E
split-complementary
#9E157F #3A9E15 #159E79
monochromatic
#320728 #680E54 #9E157F #D41CAA #E747C2

Accessibility & contrast

On white

7.32
#9E157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#9E157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E157F
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E157F#FFFFFF#000000##FFFFFF
##9E157F1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234982
Deuteranopia (green-blind)
#525E7C
Tritanopia (blue-blind)
#A81C4B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9e157f;
/* rgb */ color: rgb(158, 21, 127);
/* oklch */ color: oklch(48.0% 0.195 340.0);
Tailwind
colors: {
  custom: {
    50: '#bf67a4',
    500: '#9e157f',
    950: '#000000',
  },
}
SCSS
$custom: #9e157f;
$custom-light: #bf67a4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e157f",
  "rgb": {
    "r": 158,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 313.577,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.47982,
    "c": 0.19537,
    "h": 340
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#9E157F
secondary
#47C764
accent
#F36035
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9E157F

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

Preview Lab → · Contrast checker → · Palette generator →

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