#9E227A#9E227A

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

Color values

HEX#9E227A
RGBrgb(158, 34, 122)
HSLhsl(317, 65%, 38%)
HSVhsv(317, 78%, 62%)
CMYKcmyk(0%, 78.5%, 22.8%, 38%)
CIE-LABlab(37.52, 57.44, -20.16)
CIE-LCHlch(37.52, 60.87, 340.66°)
OKLaboklab(48.55% 0.1731 -0.0541)
OKLCHoklch(48.55% 0.181 342.6)
XYZxyz(18.1861, 9.8202, 19.3463)
Luminance0.0982 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E227A #229E46
analogous
#84229E #9E227A #9E223C
triadic
#9E227A #7A9E22 #227A9E
tetradic
#9E227A #9E8422 #229E46 #223C9E
square
#9E227A #9E8422 #229E46 #223C9E
split-complementary
#9E227A #3C9E22 #229E84
monochromatic
#390C2C #6C1753 #9E227A #D02DA1 #DC5EB8

Accessibility & contrast

On white

7.09
#9E227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E227A
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E227A#FFFFFF#000000##FFFFFF
##9E227A1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304B7C
Deuteranopia (green-blind)
#576077
Tritanopia (blue-blind)
#A8234C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e227a;
/* rgb */ color: rgb(158, 34, 122);
/* oklch */ color: oklch(48.5% 0.181 342.6);
Tailwind
colors: {
  custom: {
    50: '#bf6ba0',
    500: '#9e227a',
    950: '#000000',
  },
}
SCSS
$custom: #9e227a;
$custom-light: #bf6ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e227a",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 317.419,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48545,
    "c": 0.18131,
    "h": 342.6
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#9E227A
secondary
#5BC178
accent
#E87140
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9E227A

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

Preview Lab → · Contrast checker → · Palette generator →

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