#9E227D#9E227D

#9E227D is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.7% C 0.183 H 341.3°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#9E227D
RGBrgb(158, 34, 125)
HSLhsl(316, 65%, 38%)
HSVhsv(316, 78%, 62%)
CMYKcmyk(0%, 78.5%, 20.9%, 38%)
CIE-LABlab(37.65, 57.84, -21.82)
CIE-LCHlch(37.65, 61.82, 339.33°)
OKLaboklab(48.69% 0.1735 -0.0588)
OKLCHoklch(48.69% 0.183 341.3)
XYZxyz(18.3749, 9.8957, 20.3404)
Luminance0.0989 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E227D #229E43
analogous
#81229E #9E227D #9E223F
triadic
#9E227D #7D9E22 #227D9E
tetradic
#9E227D #9E8122 #229E43 #223F9E
square
#9E227D #9E8122 #229E43 #223F9E
split-complementary
#9E227D #3F9E22 #229E81
monochromatic
#390C2D #6C1755 #9E227D #D02DA5 #DC5EBB

Accessibility & contrast

On white

7.05
#9E227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9E227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E227D
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E227D#FFFFFF#000000##FFFFFF
##9E227D1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4C7F
Deuteranopia (green-blind)
#56607A
Tritanopia (blue-blind)
#A8254D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e227d;
/* rgb */ color: rgb(158, 34, 125);
/* oklch */ color: oklch(48.7% 0.183 341.3);
Tailwind
colors: {
  custom: {
    50: '#bf6ba3',
    500: '#9e227d',
    950: '#000000',
  },
}
SCSS
$custom: #9e227d;
$custom-light: #bf6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e227d",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 315.968,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48688,
    "c": 0.18319,
    "h": 341.3
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#9E227D
secondary
#5BC176
accent
#E86D40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9E227D

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

Preview Lab → · Contrast checker → · Palette generator →

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