#9E2158#9E2158

#9E2158 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.1% C 0.165 H 359.5°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#9E2158
RGBrgb(158, 33, 88)
HSLhsl(334, 65%, 37%)
HSVhsv(334, 79%, 62%)
CMYKcmyk(0%, 79.1%, 44.3%, 38%)
CIE-LABlab(36.11, 53.80, -0.74)
CIE-LCHlch(36.11, 53.81, 359.21°)
OKLaboklab(47.09% 0.1654 -0.0013)
OKLCHoklch(47.09% 0.165 359.5)
XYZxyz(16.4071, 9.0636, 10.1161)
Luminance0.0906 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2158 #219E67
analogous
#9E2197 #9E2158 #9E2921
triadic
#9E2158 #589E21 #21589E
tetradic
#9E2158 #979E21 #219E67 #29219E
square
#9E2158 #979E21 #219E67 #29219E
split-complementary
#9E2158 #219E29 #21979E
monochromatic
#390C20 #6B163C #9E2158 #D12C74 #DD5C95

Accessibility & contrast

On white

7.47
#9E2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E2158
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2158#FFFFFF#000000##FFFFFF
##9E21581.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E4659
Deuteranopia (green-blind)
#605D55
Tritanopia (blue-blind)
#AC063A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9e2158;
/* rgb */ color: rgb(158, 33, 88);
/* oklch */ color: oklch(47.1% 0.165 359.5);
Tailwind
colors: {
  custom: {
    50: '#c06a87',
    500: '#9e2158',
    950: '#000000',
  },
}
SCSS
$custom: #9e2158;
$custom-light: #c06a87;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2158",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 333.6,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4709,
    "c": 0.16537,
    "h": 359.5
  },
  "luminance": 0.09061
}

Semantic roles & 50–950 ramp

primary
#9E2158
secondary
#59C194
accent
#E89E3F
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9E2158

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

Preview Lab → · Contrast checker → · Palette generator →

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