#9E228B#9E228B

#9E228B is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.193 H 335.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9E228B
RGBrgb(158, 34, 139)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 78%, 62%)
CMYKcmyk(0%, 78.5%, 12%, 38%)
CIE-LABlab(38.34, 59.83, -29.41)
CIE-LCHlch(38.34, 66.67, 333.83°)
OKLaboklab(49.4% 0.175 -0.0804)
OKLCHoklch(49.4% 0.193 335.3)
XYZxyz(19.3331, 10.2790, 25.3869)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E228B #229E35
analogous
#73229E #9E228B #9E224D
triadic
#9E228B #8B9E22 #228B9E
tetradic
#9E228B #9E7322 #229E35 #224D9E
square
#9E228B #9E7322 #229E35 #224D9E
split-complementary
#9E228B #4D9E22 #229E73
monochromatic
#390C32 #6C175F #9E228B #D02DB7 #DC5EC9

Accessibility & contrast

On white

6.87
#9E228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9E228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E228B
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E228B#FFFFFF#000000##FFFFFF
##9E228B1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8E
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#A62D55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e228b;
/* rgb */ color: rgb(158, 34, 139);
/* oklch */ color: oklch(49.4% 0.193 335.3);
Tailwind
colors: {
  custom: {
    50: '#be6cad',
    500: '#9e228b',
    950: '#000000',
  },
}
SCSS
$custom: #9e228b;
$custom-light: #be6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e228b",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 309.194,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49403,
    "c": 0.19259,
    "h": 335.3
  },
  "luminance": 0.10277
}

Semantic roles & 50–950 ramp

primary
#9E228B
secondary
#5BC16A
accent
#E85A40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E228B

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

Preview Lab → · Contrast checker → · Palette generator →

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