#9E229B#9E229B

#9E229B is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.204 H 329.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9E229B
RGBrgb(158, 34, 155)
HSLhsl(301, 65%, 38%)
HSVhsv(301, 78%, 62%)
CMYKcmyk(0%, 78.5%, 1.9%, 38%)
CIE-LABlab(39.21, 62.31, -37.78)
CIE-LCHlch(39.21, 72.87, 328.77°)
OKLaboklab(50.31% 0.1754 -0.1046)
OKLCHoklch(50.31% 0.204 329.2)
XYZxyz(20.5888, 10.7813, 32.0006)
Luminance0.1078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E229B #229E25
analogous
#63229E #9E229B #9E225D
triadic
#9E229B #9B9E22 #229B9E
tetradic
#9E229B #9E6322 #229E25 #225D9E
square
#9E229B #9E6322 #229E25 #225D9E
split-complementary
#9E229B #5D9E22 #229E63
monochromatic
#390C38 #6C176A #9E229B #D02DCC #DC5ED9

Accessibility & contrast

On white

6.65
#9E229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E229B
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E229B#FFFFFF#000000##FFFFFF
##9E229B1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06529E
Deuteranopia (green-blind)
#486298
Tritanopia (blue-blind)
#A4365E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e229b;
/* rgb */ color: rgb(158, 34, 155);
/* oklch */ color: oklch(50.3% 0.204 329.2);
Tailwind
colors: {
  custom: {
    50: '#be6db9',
    500: '#9e229b',
    950: '#000000',
  },
}
SCSS
$custom: #9e229b;
$custom-light: #be6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e229b",
  "rgb": {
    "r": 158,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 301.452,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.50307,
    "c": 0.20421,
    "h": 329.2
  },
  "luminance": 0.1078
}

Semantic roles & 50–950 ramp

primary
#9E229B
secondary
#5BC15D
accent
#E84440
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E229B

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

Preview Lab → · Contrast checker → · Palette generator →

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