#5E165A#5E165A

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

Color values

HEX#5E165A
RGBrgb(94, 22, 90)
HSLhsl(303, 62%, 23%)
HSVhsv(303, 77%, 37%)
CMYKcmyk(0%, 76.6%, 4.3%, 63.1%)
CIE-LABlab(22.63, 40.55, -23.72)
CIE-LCHlch(22.63, 46.98, 329.67°)
OKLaboklab(35.04% 0.1151 -0.0654)
OKLCHoklch(35.04% 0.132 330.4)
XYZxyz(6.7484, 3.6922, 10.0281)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E165A #165E1A
analogous
#3E165E #5E165A #5E1636
triadic
#5E165A #5A5E16 #165A5E
tetradic
#5E165A #5E3E16 #165E1A #16365E
square
#5E165A #5E3E16 #165E1A #16365E
split-complementary
#5E165A #365E16 #165E3E
monochromatic
#190618 #2C0A2B #5E165A #902289 #C12DB9

Accessibility & contrast

On white

12.08
#5E165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5E165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E165A
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E165A#FFFFFF#000000##FFFFFF
##5E165A1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305C
Deuteranopia (green-blind)
#2C3958
Tritanopia (blue-blind)
#621F36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e165a;
/* rgb */ color: rgb(94, 22, 90);
/* oklch */ color: oklch(35.0% 0.132 330.4);
Tailwind
colors: {
  custom: {
    50: '#8e5b89',
    500: '#5e165a',
    950: '#000000',
  },
}
SCSS
$custom: #5e165a;
$custom-light: #8e5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5e165a",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 303.333,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35042,
    "c": 0.13237,
    "h": 330.4
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#5E165A
secondary
#3B9540
accent
#E54C43
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E165A

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

Preview Lab → · Contrast checker → · Palette generator →

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