#9E1798#9E1798

#9E1798 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.5% C 0.211 H 330.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9E1798
RGBrgb(158, 23, 152)
HSLhsl(303, 75%, 35%)
HSVhsv(303, 85%, 62%)
CMYKcmyk(0%, 85.4%, 3.8%, 38%)
CIE-LABlab(38.11, 64.52, -37.71)
CIE-LCHlch(38.11, 74.74, 329.70°)
OKLaboklab(49.47% 0.1832 -0.1043)
OKLCHoklch(49.47% 0.211 330.3)
XYZxyz(20.0744, 10.1506, 30.6017)
Luminance0.1015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1798 #179E1D
analogous
#61179E #9E1798 #9E1754
triadic
#9E1798 #989E17 #17989E
tetradic
#9E1798 #9E6117 #179E1D #17549E
square
#9E1798 #9E6117 #179E1D #17549E
split-complementary
#9E1798 #549E17 #179E61
monochromatic
#330731 #690F65 #9E1798 #D31FCB #E54BDE

Accessibility & contrast

On white

6.93
#9E1798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9E1798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1798
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1798#FFFFFF#000000##FFFFFF
##9E17981.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e1798;
/* rgb */ color: rgb(158, 23, 152);
/* oklch */ color: oklch(49.5% 0.211 330.3);
Tailwind
colors: {
  custom: {
    50: '#bf69b7',
    500: '#9e1798',
    950: '#000000',
  },
}
SCSS
$custom: #9e1798;
$custom-light: #bf69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1798",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 302.667,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.49471,
    "c": 0.21079,
    "h": 330.3
  },
  "luminance": 0.10149
}

Semantic roles & 50–950 ramp

primary
#9E1798
secondary
#4AC650
accent
#F13F37
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9E1798

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

Preview Lab → · Contrast checker → · Palette generator →

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