#5E175D#5E175D

#5E175D is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.134 H 328.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#5E175D
RGBrgb(94, 23, 93)
HSLhsl(301, 61%, 23%)
HSVhsv(301, 76%, 37%)
CMYKcmyk(0%, 75.5%, 1.1%, 63.1%)
CIE-LABlab(22.94, 40.71, -25.21)
CIE-LCHlch(22.94, 47.88, 328.23°)
OKLaboklab(35.33% 0.1141 -0.0697)
OKLCHoklch(35.33% 0.134 328.6)
XYZxyz(6.8982, 3.7833, 10.7207)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E175D #175E18
analogous
#3B175E #5E175D #5E1739
triadic
#5E175D #5D5E17 #175D5E
tetradic
#5E175D #5E3B17 #175E18 #17395E
square
#5E175D #5E3B17 #175E18 #17395E
split-complementary
#5E175D #395E17 #175E3B
monochromatic
#190618 #2D0B2C #5E175D #8F238E #C02FBE

Accessibility & contrast

On white

11.95
#5E175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5E175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E175D
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E175D#FFFFFF#000000##FFFFFF
##5E175D1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C315F
Deuteranopia (green-blind)
#2A3A5B
Tritanopia (blue-blind)
#612138
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e175d;
/* rgb */ color: rgb(94, 23, 93);
/* oklch */ color: oklch(35.3% 0.134 328.6);
Tailwind
colors: {
  custom: {
    50: '#8e5c8b',
    500: '#5e175d',
    950: '#000000',
  },
}
SCSS
$custom: #5e175d;
$custom-light: #8e5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e175d",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 300.845,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35327,
    "c": 0.13369,
    "h": 328.6
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#5E175D
secondary
#3C953D
accent
#E44644
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E175D

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

Preview Lab → · Contrast checker → · Palette generator →

#5E175D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva