#9E227E#9E227E

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

Color values

HEX#9E227E
RGBrgb(158, 34, 126)
HSLhsl(315, 65%, 38%)
HSVhsv(315, 78%, 62%)
CMYKcmyk(0%, 78.5%, 20.3%, 38%)
CIE-LABlab(37.70, 57.98, -22.37)
CIE-LCHlch(37.70, 62.15, 338.90°)
OKLaboklab(48.74% 0.1737 -0.0603)
OKLCHoklch(48.74% 0.184 340.8)
XYZxyz(18.4391, 9.9214, 20.6786)
Luminance0.0992 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E227E #229E42
analogous
#80229E #9E227E #9E2240
triadic
#9E227E #7E9E22 #227E9E
tetradic
#9E227E #9E8022 #229E42 #22409E
square
#9E227E #9E8022 #229E42 #22409E
split-complementary
#9E227E #409E22 #229E80
monochromatic
#390C2E #6C1756 #9E227E #D02DA6 #DC5EBC

Accessibility & contrast

On white

7.04
#9E227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9E227E
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E227E#FFFFFF#000000##FFFFFF
##9E227E1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4C80
Deuteranopia (green-blind)
#55607B
Tritanopia (blue-blind)
#A8254E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e227e;
/* rgb */ color: rgb(158, 34, 126);
/* oklch */ color: oklch(48.7% 0.184 340.8);
Tailwind
colors: {
  custom: {
    50: '#bf6ca3',
    500: '#9e227e',
    950: '#000000',
  },
}
SCSS
$custom: #9e227e;
$custom-light: #bf6ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e227e",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 315.484,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48737,
    "c": 0.18383,
    "h": 340.8
  },
  "luminance": 0.0992
}

Semantic roles & 50–950 ramp

primary
#9E227E
secondary
#5BC175
accent
#E86B40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9E227E

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

Preview Lab → · Contrast checker → · Palette generator →

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