#5E175B#5E175B

#5E175B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.132 H 329.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#5E175B
RGBrgb(94, 23, 91)
HSLhsl(303, 61%, 23%)
HSVhsv(303, 76%, 37%)
CMYKcmyk(0%, 75.5%, 3.2%, 63.1%)
CIE-LABlab(22.82, 40.34, -24.08)
CIE-LCHlch(22.82, 46.98, 329.17°)
OKLaboklab(35.2% 0.114 -0.0665)
OKLCHoklch(35.2% 0.132 329.8)
XYZxyz(6.8108, 3.7483, 10.2603)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E175B #175E1A
analogous
#3D175E #5E175B #5E1737
triadic
#5E175B #5B5E17 #175B5E
tetradic
#5E175B #5E3D17 #175E1A #17375E
square
#5E175B #5E3D17 #175E1A #17375E
split-complementary
#5E175B #375E17 #175E3D
monochromatic
#190618 #2D0B2B #5E175B #8F238B #C02FBA

Accessibility & contrast

On white

12.00
#5E175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E175B
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E175B#FFFFFF#000000##FFFFFF
##5E175B1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F305D
Deuteranopia (green-blind)
#2B3A59
Tritanopia (blue-blind)
#622037
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e175b;
/* rgb */ color: rgb(94, 23, 91);
/* oklch */ color: oklch(35.2% 0.132 329.8);
Tailwind
colors: {
  custom: {
    50: '#8e5c8a',
    500: '#5e175b',
    950: '#000000',
  },
}
SCSS
$custom: #5e175b;
$custom-light: #8e5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e175b",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 302.535,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35201,
    "c": 0.13196,
    "h": 329.8
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#5E175B
secondary
#3C9540
accent
#E44B44
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E175B

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

Preview Lab → · Contrast checker → · Palette generator →

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