#9E229E#9E229E

#9E229E is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.5% C 0.206 H 328.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9E229E
RGBrgb(158, 34, 158)
HSLhsl(300, 65%, 38%)
HSVhsv(300, 78%, 62%)
CMYKcmyk(0%, 78.5%, 0%, 38%)
CIE-LABlab(39.38, 62.80, -39.32)
CIE-LCHlch(39.38, 74.09, 327.95°)
OKLaboklab(50.49% 0.1753 -0.1091)
OKLCHoklch(50.49% 0.206 328.1)
XYZxyz(20.8439, 10.8833, 33.3440)
Luminance0.1088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E229E #229E22
analogous
#60229E #9E229E #9E2260
triadic
#9E229E #9E9E22 #229E9E
tetradic
#9E229E #9E6022 #229E22 #22609E
square
#9E229E #9E6022 #229E22 #22609E
split-complementary
#9E229E #609E22 #229E60
monochromatic
#390C39 #6C176C #9E229E #D02DD0 #DC5EDC

Accessibility & contrast

On white

6.61
#9E229E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9E229E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E229E
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E229E#FFFFFF#000000##FFFFFF
##9E229E1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A1
Deuteranopia (green-blind)
#46629B
Tritanopia (blue-blind)
#A33760
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e229e;
/* rgb */ color: rgb(158, 34, 158);
/* oklch */ color: oklch(50.5% 0.206 328.1);
Tailwind
colors: {
  custom: {
    50: '#bf6dbb',
    500: '#9e229e',
    950: '#000000',
  },
}
SCSS
$custom: #9e229e;
$custom-light: #bf6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e229e",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 300,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50487,
    "c": 0.20647,
    "h": 328.1
  },
  "luminance": 0.10882
}

Semantic roles & 50–950 ramp

primary
#9E229E
secondary
#5BC15B
accent
#E84040
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E229E

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

Preview Lab → · Contrast checker → · Palette generator →

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