#5E175A#5E175A

#5E175A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.131 H 330.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#5E175A
RGBrgb(94, 23, 90)
HSLhsl(303, 61%, 23%)
HSVhsv(303, 76%, 37%)
CMYKcmyk(0%, 75.5%, 4.3%, 63.1%)
CIE-LABlab(22.76, 40.16, -23.51)
CIE-LCHlch(22.76, 46.54, 329.66°)
OKLaboklab(35.14% 0.114 -0.0648)
OKLCHoklch(35.14% 0.131 330.4)
XYZxyz(6.7679, 3.7312, 10.0346)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E175A #175E1B
analogous
#3E175E #5E175A #5E1736
triadic
#5E175A #5A5E17 #175A5E
tetradic
#5E175A #5E3E17 #175E1B #17365E
square
#5E175A #5E3E17 #175E1B #17365E
split-complementary
#5E175A #365E17 #175E3E
monochromatic
#190618 #2D0B2B #5E175A #8F2389 #C02FB8

Accessibility & contrast

On white

12.03
#5E175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5E175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E175A
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E175A#FFFFFF#000000##FFFFFF
##5E175A1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10305C
Deuteranopia (green-blind)
#2C3A58
Tritanopia (blue-blind)
#622036
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e175a;
/* rgb */ color: rgb(94, 23, 90);
/* oklch */ color: oklch(35.1% 0.131 330.4);
Tailwind
colors: {
  custom: {
    50: '#8e5c89',
    500: '#5e175a',
    950: '#000000',
  },
}
SCSS
$custom: #5e175a;
$custom-light: #8e5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#5e175a",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 303.38,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3514,
    "c": 0.1311,
    "h": 330.4
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#5E175A
secondary
#3C9541
accent
#E44D44
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E175A

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

Preview Lab → · Contrast checker → · Palette generator →

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