#5D165F#5D165F

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

Color values

HEX#5D165F
RGBrgb(93, 22, 95)
HSLhsl(298, 62%, 23%)
HSVhsv(298, 77%, 37%)
CMYKcmyk(2.1%, 76.8%, 0%, 62.7%)
CIE-LABlab(22.75, 41.22, -26.85)
CIE-LCHlch(22.75, 49.19, 326.92°)
OKLaboklab(35.19% 0.1139 -0.0745)
OKLCHoklch(35.19% 0.136 326.8)
XYZxyz(6.8666, 3.7277, 11.1821)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D165F #185F16
analogous
#38165F #5D165F #5F163C
triadic
#5D165F #5F5D16 #165F5D
tetradic
#5D165F #5F3816 #185F16 #163C5F
square
#5D165F #5F3816 #185F16 #163C5F
split-complementary
#5D165F #3C5F16 #165F38
monochromatic
#180619 #2C0A2D #5D165F #8E2291 #BE2DC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D165F#FFFFFF#000000##FFFFFF
##5D165F1.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)
#063161
Deuteranopia (green-blind)
#28395D
Tritanopia (blue-blind)
#602239
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d165f;
/* rgb */ color: rgb(93, 22, 95);
/* oklch */ color: oklch(35.2% 0.136 326.8);
Tailwind
colors: {
  custom: {
    50: '#8e5c8d',
    500: '#5d165f',
    950: '#000000',
  },
}
SCSS
$custom: #5d165f;
$custom-light: #8e5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d165f",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 298.356,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35194,
    "c": 0.13614,
    "h": 326.8
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#5D165F
secondary
#3D963B
accent
#E54247
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D165F

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

Preview Lab → · Contrast checker → · Palette generator →

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