#9E1792#9E1792

#9E1792 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.207 H 332.5°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#9E1792
RGBrgb(158, 23, 146)
HSLhsl(305, 75%, 35%)
HSVhsv(305, 85%, 62%)
CMYKcmyk(0%, 85.4%, 7.6%, 38%)
CIE-LABlab(37.77, 63.62, -34.60)
CIE-LCHlch(37.77, 72.41, 331.46°)
OKLaboklab(49.12% 0.1833 -0.0953)
OKLCHoklch(49.12% 0.207 332.5)
XYZxyz(19.5954, 9.9589, 28.0788)
Luminance0.0996 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1792 #179E23
analogous
#66179E #9E1792 #9E174F
triadic
#9E1792 #929E17 #17929E
tetradic
#9E1792 #9E6617 #179E23 #174F9E
square
#9E1792 #9E6617 #179E23 #174F9E
split-complementary
#9E1792 #4F9E17 #179E66
monochromatic
#33072F #690F61 #9E1792 #D31FC3 #E54BD7

Accessibility & contrast

On white

7.02
#9E1792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9E1792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1792
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1792#FFFFFF#000000##FFFFFF
##9E17921.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074D95
Deuteranopia (green-blind)
#495F8F
Tritanopia (blue-blind)
#A52A57
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1792;
/* rgb */ color: rgb(158, 23, 146);
/* oklch */ color: oklch(49.1% 0.207 332.5);
Tailwind
colors: {
  custom: {
    50: '#bf69b2',
    500: '#9e1792',
    950: '#000000',
  },
}
SCSS
$custom: #9e1792;
$custom-light: #bf69b2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1792",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 146
  },
  "hsl": {
    "h": 305.333,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.49118,
    "c": 0.20658,
    "h": 332.5
  },
  "luminance": 0.09957
}

Semantic roles & 50–950 ramp

primary
#9E1792
secondary
#4AC655
accent
#F14737
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9E1792

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

Preview Lab → · Contrast checker → · Palette generator →

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