#9E228E#9E228E

#9E228E is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.195 H 334.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#9E228E
RGBrgb(158, 34, 142)
HSLhsl(308, 65%, 38%)
HSVhsv(308, 78%, 62%)
CMYKcmyk(0%, 78.5%, 10.1%, 38%)
CIE-LABlab(38.49, 60.28, -31.00)
CIE-LCHlch(38.49, 67.79, 332.78°)
OKLaboklab(49.57% 0.1752 -0.085)
OKLCHoklch(49.57% 0.195 334.1)
XYZxyz(19.5553, 10.3679, 26.5572)
Luminance0.1037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E228E #229E32
analogous
#70229E #9E228E #9E2250
triadic
#9E228E #8E9E22 #228E9E
tetradic
#9E228E #9E7022 #229E32 #22509E
square
#9E228E #9E7022 #229E32 #22509E
split-complementary
#9E228E #509E22 #229E70
monochromatic
#390C33 #6C1761 #9E228E #D02DBB #DC5ECC

Accessibility & contrast

On white

6.83
#9E228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E228E
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E228E#FFFFFF#000000##FFFFFF
##9E228E1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4F91
Deuteranopia (green-blind)
#4F618B
Tritanopia (blue-blind)
#A62F57
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e228e;
/* rgb */ color: rgb(158, 34, 142);
/* oklch */ color: oklch(49.6% 0.195 334.1);
Tailwind
colors: {
  custom: {
    50: '#be6caf',
    500: '#9e228e',
    950: '#000000',
  },
}
SCSS
$custom: #9e228e;
$custom-light: #be6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e228e",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 307.742,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49566,
    "c": 0.19471,
    "h": 334.1
  },
  "luminance": 0.10366
}

Semantic roles & 50–950 ramp

primary
#9E228E
secondary
#5BC168
accent
#E85640
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E228E

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

Preview Lab → · Contrast checker → · Palette generator →

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