#9E228D#9E228D

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

Color values

HEX#9E228D
RGBrgb(158, 34, 141)
HSLhsl(308, 65%, 38%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 78.5%, 10.8%, 38%)
CIE-LABlab(38.44, 60.13, -30.47)
CIE-LCHlch(38.44, 67.41, 333.13°)
OKLaboklab(49.51% 0.1751 -0.0835)
OKLCHoklch(49.51% 0.194 334.5)
XYZxyz(19.4805, 10.3380, 26.1636)
Luminance0.1034 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E228D #229E33
analogous
#71229E #9E228D #9E224F
triadic
#9E228D #8D9E22 #228D9E
tetradic
#9E228D #9E7122 #229E33 #224F9E
square
#9E228D #9E7122 #229E33 #224F9E
split-complementary
#9E228D #4F9E22 #229E71
monochromatic
#390C33 #6C1760 #9E228D #D02DBA #DC5ECB

Accessibility & contrast

On white

6.85
#9E228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9E228D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E228D
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E228D#FFFFFF#000000##FFFFFF
##9E228D1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204F90
Deuteranopia (green-blind)
#4F618A
Tritanopia (blue-blind)
#A62E56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e228d;
/* rgb */ color: rgb(158, 34, 141);
/* oklch */ color: oklch(49.5% 0.194 334.5);
Tailwind
colors: {
  custom: {
    50: '#be6cae',
    500: '#9e228d',
    950: '#000000',
  },
}
SCSS
$custom: #9e228d;
$custom-light: #be6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#9e228d",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 308.226,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49511,
    "c": 0.194,
    "h": 334.5
  },
  "luminance": 0.10336
}

Semantic roles & 50–950 ramp

primary
#9E228D
secondary
#5BC169
accent
#E85740
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E228D

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

Preview Lab → · Contrast checker → · Palette generator →

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