#9E227B#9E227B

#9E227B is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.6% C 0.182 H 342.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#9E227B
RGBrgb(158, 34, 123)
HSLhsl(317, 65%, 38%)
HSVhsv(317, 78%, 62%)
CMYKcmyk(0%, 78.5%, 22.2%, 38%)
CIE-LABlab(37.56, 57.57, -20.72)
CIE-LCHlch(37.56, 61.19, 340.21°)
OKLaboklab(48.59% 0.1732 -0.0556)
OKLCHoklch(48.59% 0.182 342.2)
XYZxyz(18.2484, 9.8451, 19.6743)
Luminance0.0984 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E227B #229E45
analogous
#83229E #9E227B #9E223D
triadic
#9E227B #7B9E22 #227B9E
tetradic
#9E227B #9E8322 #229E45 #223D9E
square
#9E227B #9E8322 #229E45 #223D9E
split-complementary
#9E227B #3D9E22 #229E83
monochromatic
#390C2D #6C1754 #9E227B #D02DA2 #DC5EB9

Accessibility & contrast

On white

7.07
#9E227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9E227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E227B
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E227B#FFFFFF#000000##FFFFFF
##9E227B1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4C7D
Deuteranopia (green-blind)
#576078
Tritanopia (blue-blind)
#A8244C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e227b;
/* rgb */ color: rgb(158, 34, 123);
/* oklch */ color: oklch(48.6% 0.182 342.2);
Tailwind
colors: {
  custom: {
    50: '#bf6ba1',
    500: '#9e227b',
    950: '#000000',
  },
}
SCSS
$custom: #9e227b;
$custom-light: #bf6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e227b",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 316.935,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48592,
    "c": 0.18193,
    "h": 342.2
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#9E227B
secondary
#5BC178
accent
#E86F40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080F
muted
#827A7E

Preview Lab

Preview with #9E227B

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

Preview Lab → · Contrast checker → · Palette generator →

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