#9E229C#9E229C

#9E229C is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.4% C 0.205 H 328.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#9E229C
RGBrgb(158, 34, 156)
HSLhsl(301, 65%, 38%)
HSVhsv(301, 78%, 62%)
CMYKcmyk(0%, 78.5%, 1.3%, 38%)
CIE-LABlab(39.27, 62.47, -38.30)
CIE-LCHlch(39.27, 73.28, 328.49°)
OKLaboklab(50.37% 0.1754 -0.1061)
OKLCHoklch(50.37% 0.205 328.8)
XYZxyz(20.6731, 10.8150, 32.4447)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E229C #229E24
analogous
#62229E #9E229C #9E225E
triadic
#9E229C #9C9E22 #229C9E
tetradic
#9E229C #9E6222 #229E24 #225E9E
square
#9E229C #9E6222 #229E24 #225E9E
split-complementary
#9E229C #5E9E22 #229E62
monochromatic
#390C39 #6C176A #9E229C #D02DCE #DC5EDA

Accessibility & contrast

On white

6.64
#9E229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9E229C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E229C
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E229C#FFFFFF#000000##FFFFFF
##9E229C1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03529F
Deuteranopia (green-blind)
#476299
Tritanopia (blue-blind)
#A3365F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e229c;
/* rgb */ color: rgb(158, 34, 156);
/* oklch */ color: oklch(50.4% 0.205 328.8);
Tailwind
colors: {
  custom: {
    50: '#bf6dba',
    500: '#9e229c',
    950: '#000000',
  },
}
SCSS
$custom: #9e229c;
$custom-light: #bf6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#9e229c",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 300.968,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50367,
    "c": 0.20496,
    "h": 328.8
  },
  "luminance": 0.10813
}

Semantic roles & 50–950 ramp

primary
#9E229C
secondary
#5BC15C
accent
#E84340
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E229C

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

Preview Lab → · Contrast checker → · Palette generator →

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