#9E228C#9E228C

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

Color values

HEX#9E228C
RGBrgb(158, 34, 140)
HSLhsl(309, 65%, 38%)
HSVhsv(309, 78%, 62%)
CMYKcmyk(0%, 78.5%, 11.4%, 38%)
CIE-LABlab(38.39, 59.98, -29.94)
CIE-LCHlch(38.39, 67.04, 333.47°)
OKLaboklab(49.46% 0.1751 -0.0819)
OKLCHoklch(49.46% 0.193 334.9)
XYZxyz(19.4065, 10.3084, 25.7735)
Luminance0.1031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E228C #229E34
analogous
#72229E #9E228C #9E224E
triadic
#9E228C #8C9E22 #228C9E
tetradic
#9E228C #9E7222 #229E34 #224E9E
square
#9E228C #9E7222 #229E34 #224E9E
split-complementary
#9E228C #4E9E22 #229E72
monochromatic
#390C33 #6C175F #9E228C #D02DB9 #DC5ECA

Accessibility & contrast

On white

6.86
#9E228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E228C
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E228C#FFFFFF#000000##FFFFFF
##9E228C1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214F8F
Deuteranopia (green-blind)
#506189
Tritanopia (blue-blind)
#A62E56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e228c;
/* rgb */ color: rgb(158, 34, 140);
/* oklch */ color: oklch(49.5% 0.193 334.9);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9e228c',
    950: '#000000',
  },
}
SCSS
$custom: #9e228c;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9e228c",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 308.71,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49457,
    "c": 0.19329,
    "h": 334.9
  },
  "luminance": 0.10307
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E228C

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

Preview Lab → · Contrast checker → · Palette generator →

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