#9E1795#9E1795

#9E1795 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.209 H 331.4°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9E1795
RGBrgb(158, 23, 149)
HSLhsl(304, 75%, 35%)
HSVhsv(304, 85%, 62%)
CMYKcmyk(0%, 85.4%, 5.7%, 38%)
CIE-LABlab(37.94, 64.07, -36.16)
CIE-LCHlch(37.94, 73.57, 330.56°)
OKLaboklab(49.29% 0.1833 -0.0998)
OKLCHoklch(49.29% 0.209 331.4)
XYZxyz(19.8318, 10.0535, 29.3240)
Luminance0.1005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1795 #179E20
analogous
#63179E #9E1795 #9E1751
triadic
#9E1795 #959E17 #17959E
tetradic
#9E1795 #9E6317 #179E20 #17519E
square
#9E1795 #9E6317 #179E20 #17519E
split-complementary
#9E1795 #519E17 #179E63
monochromatic
#330730 #690F63 #9E1795 #D31FC7 #E54BDA

Accessibility & contrast

On white

6.98
#9E1795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9E1795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1795
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1795#FFFFFF#000000##FFFFFF
##9E17951.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E98
Deuteranopia (green-blind)
#486092
Tritanopia (blue-blind)
#A52C59
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1795;
/* rgb */ color: rgb(158, 23, 149);
/* oklch */ color: oklch(49.3% 0.209 331.4);
Tailwind
colors: {
  custom: {
    50: '#bf69b4',
    500: '#9e1795',
    950: '#000000',
  },
}
SCSS
$custom: #9e1795;
$custom-light: #bf69b4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1795",
  "rgb": {
    "r": 158,
    "g": 23,
    "b": 149
  },
  "hsl": {
    "h": 304,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.49293,
    "c": 0.20868,
    "h": 331.4
  },
  "luminance": 0.10052
}

Semantic roles & 50–950 ramp

primary
#9E1795
secondary
#4AC653
accent
#F14337
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9E1795

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

Preview Lab → · Contrast checker → · Palette generator →

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