#9E217B#9E217B

#9E217B is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.5% C 0.183 H 342.1°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#9E217B
RGBrgb(158, 33, 123)
HSLhsl(317, 65%, 37%)
HSVhsv(317, 79%, 62%)
CMYKcmyk(0%, 79.1%, 22.2%, 38%)
CIE-LABlab(37.46, 57.86, -20.88)
CIE-LCHlch(37.46, 61.52, 340.16°)
OKLaboklab(48.52% 0.1741 -0.0561)
OKLCHoklch(48.52% 0.183 342.1)
XYZxyz(18.2202, 9.7888, 19.6649)
Luminance0.0979 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E217B #219E44
analogous
#83219E #9E217B #9E213D
triadic
#9E217B #7B9E21 #217B9E
tetradic
#9E217B #9E8321 #219E44 #213D9E
square
#9E217B #9E8321 #219E44 #213D9E
split-complementary
#9E217B #3D9E21 #219E83
monochromatic
#390C2C #6B1654 #9E217B #D12CA2 #DD5CB9

Accessibility & contrast

On white

7.10
#9E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9E217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E217B
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E217B#FFFFFF#000000##FFFFFF
##9E217B1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4B7D
Deuteranopia (green-blind)
#565F78
Tritanopia (blue-blind)
#A8234C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e217b;
/* rgb */ color: rgb(158, 33, 123);
/* oklch */ color: oklch(48.5% 0.183 342.1);
Tailwind
colors: {
  custom: {
    50: '#bf6ba1',
    500: '#9e217b',
    950: '#000000',
  },
}
SCSS
$custom: #9e217b;
$custom-light: #bf6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e217b",
  "rgb": {
    "r": 158,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 316.8,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48518,
    "c": 0.18292,
    "h": 342.1
  },
  "luminance": 0.09787
}

Semantic roles & 50–950 ramp

primary
#9E217B
secondary
#59C177
accent
#E86F3F
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070F
muted
#827A7E

Preview Lab

Preview with #9E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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