#9E229D#9E229D

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

Color values

HEX#9E229D
RGBrgb(158, 34, 157)
HSLhsl(300, 65%, 38%)
HSVhsv(300, 78%, 62%)
CMYKcmyk(0%, 78.5%, 0.6%, 38%)
CIE-LABlab(39.33, 62.64, -38.81)
CIE-LCHlch(39.33, 73.68, 328.22°)
OKLaboklab(50.43% 0.1753 -0.1076)
OKLCHoklch(50.43% 0.206 328.5)
XYZxyz(20.7582, 10.8491, 32.8925)
Luminance0.1085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E229D #229E23
analogous
#61229E #9E229D #9E225F
triadic
#9E229D #9D9E22 #229D9E
tetradic
#9E229D #9E6122 #229E23 #225F9E
square
#9E229D #9E6122 #229E23 #225F9E
split-complementary
#9E229D #5F9E22 #229E61
monochromatic
#390C39 #6C176B #9E229D #D02DCF #DC5EDB

Accessibility & contrast

On white

6.63
#9E229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9E229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E229D
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E229D#FFFFFF#000000##FFFFFF
##9E229D1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#47629A
Tritanopia (blue-blind)
#A3375F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e229d;
/* rgb */ color: rgb(158, 34, 157);
/* oklch */ color: oklch(50.4% 0.206 328.5);
Tailwind
colors: {
  custom: {
    50: '#bf6dba',
    500: '#9e229d',
    950: '#000000',
  },
}
SCSS
$custom: #9e229d;
$custom-light: #bf6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#9e229d",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 300.484,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50427,
    "c": 0.20571,
    "h": 328.5
  },
  "luminance": 0.10847
}

Semantic roles & 50–950 ramp

primary
#9E229D
secondary
#5BC15C
accent
#E84240
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E229D

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

Preview Lab → · Contrast checker → · Palette generator →

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