#5E185B#5E185B

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

Color values

HEX#5E185B
RGBrgb(94, 24, 91)
HSLhsl(303, 59%, 23%)
HSVhsv(303, 74%, 37%)
CMYKcmyk(0%, 74.5%, 3.2%, 63.1%)
CIE-LABlab(22.96, 39.95, -23.86)
CIE-LCHlch(22.96, 46.53, 329.15°)
OKLaboklab(35.3% 0.1129 -0.0658)
OKLCHoklch(35.3% 0.131 329.7)
XYZxyz(6.8310, 3.7888, 10.2670)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E185B #185E1B
analogous
#3E185E #5E185B #5E1838
triadic
#5E185B #5B5E18 #185B5E
tetradic
#5E185B #5E3E18 #185E1B #18385E
square
#5E185B #5E3E18 #185E1B #18385E
split-complementary
#5E185B #385E18 #185E3E
monochromatic
#180618 #2D0C2C #5E185B #8F248A #C031B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E185B#FFFFFF#000000##FFFFFF
##5E185B1.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)
#10315D
Deuteranopia (green-blind)
#2C3A59
Tritanopia (blue-blind)
#622137
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e185b;
/* rgb */ color: rgb(94, 24, 91);
/* oklch */ color: oklch(35.3% 0.131 329.7);
Tailwind
colors: {
  custom: {
    50: '#8e5c8a',
    500: '#5e185b',
    950: '#000000',
  },
}
SCSS
$custom: #5e185b;
$custom-light: #8e5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e185b",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 302.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35301,
    "c": 0.13066,
    "h": 329.7
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#5E185B
secondary
#3D9441
accent
#E34C45
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E185B

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

Preview Lab → · Contrast checker → · Palette generator →

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