#5D165E#5D165E

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

Color values

HEX#5D165E
RGBrgb(93, 22, 94)
HSLhsl(299, 62%, 23%)
HSVhsv(299, 77%, 37%)
CMYKcmyk(1.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(22.69, 41.03, -26.29)
CIE-LCHlch(22.69, 48.73, 327.35°)
OKLaboklab(35.13% 0.1139 -0.0729)
OKLCHoklch(35.13% 0.135 327.4)
XYZxyz(6.8214, 3.7096, 10.9442)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D165E #175E16
analogous
#39165E #5D165E #5E163B
triadic
#5D165E #5E5D16 #165E5D
tetradic
#5D165E #5E3916 #175E16 #163B5E
square
#5D165E #5E3916 #175E16 #163B5E
split-complementary
#5D165E #3B5E16 #165E39
monochromatic
#190619 #2C0A2C #5D165E #8E2290 #BF2DC1

Accessibility & contrast

On white

12.06
#5D165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D165E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D165E#FFFFFF#000000##FFFFFF
##5D165E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073060
Deuteranopia (green-blind)
#28395C
Tritanopia (blue-blind)
#602138
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d165e;
/* rgb */ color: rgb(93, 22, 94);
/* oklch */ color: oklch(35.1% 0.135 327.4);
Tailwind
colors: {
  custom: {
    50: '#8e5b8c',
    500: '#5d165e',
    950: '#000000',
  },
}
SCSS
$custom: #5d165e;
$custom-light: #8e5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d165e",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 299.167,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35129,
    "c": 0.13526,
    "h": 327.4
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#5D165E
secondary
#3C953B
accent
#E54345
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D165E

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

Preview Lab → · Contrast checker → · Palette generator →

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