#9E1797#9E1797

#9E1797 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.4% C 0.210 H 330.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#9E1797
RGBrgb(158, 23, 151)
HSLhsl(303, 75%, 35%)
HSVhsv(303, 85%, 62%)
CMYKcmyk(0%, 85.4%, 4.4%, 38%)
CIE-LABlab(38.05, 64.37, -37.20)
CIE-LCHlch(38.05, 74.34, 329.98°)
OKLaboklab(49.41% 0.1832 -0.1028)
OKLCHoklch(49.41% 0.21 330.7)
XYZxyz(19.9928, 10.1179, 30.1721)
Luminance0.1012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1797 #179E1E
analogous
#61179E #9E1797 #9E1753
triadic
#9E1797 #979E17 #17979E
tetradic
#9E1797 #9E6117 #179E1E #17539E
square
#9E1797 #9E6117 #179E1E #17539E
split-complementary
#9E1797 #539E17 #179E61
monochromatic
#330731 #690F64 #9E1797 #D31FCA #E54BDD

Accessibility & contrast

On white

6.95
#9E1797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9E1797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1797
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1797#FFFFFF#000000##FFFFFF
##9E17971.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#476094
Tritanopia (blue-blind)
#A42E5A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e1797;
/* rgb */ color: rgb(158, 23, 151);
/* oklch */ color: oklch(49.4% 0.210 330.7);
Tailwind
colors: {
  custom: {
    50: '#bf69b6',
    500: '#9e1797',
    950: '#000000',
  },
}
SCSS
$custom: #9e1797;
$custom-light: #bf69b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1797",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 303.111,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.49411,
    "c": 0.21009,
    "h": 330.7
  },
  "luminance": 0.10116
}

Semantic roles & 50–950 ramp

primary
#9E1797
secondary
#4AC651
accent
#F14037
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9E1797

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

Preview Lab → · Contrast checker → · Palette generator →

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