#5D167D#5D167D

#5D167D is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 312.3°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#5D167D
RGBrgb(93, 22, 125)
HSLhsl(281, 70%, 29%)
HSVhsv(281, 82%, 49%)
CMYKcmyk(25.6%, 82.4%, 0%, 51%)
CIE-LABlab(24.90, 47.34, -42.79)
CIE-LCHlch(24.90, 63.81, 317.89°)
OKLaboklab(37.4% 0.1101 -0.1212)
OKLCHoklch(37.4% 0.164 312.3)
XYZxyz(8.5021, 4.3819, 19.7960)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D167D #367D16
analogous
#2A167D #5D167D #7D166A
triadic
#5D167D #7D5D16 #167D5D
tetradic
#5D167D #7D2A16 #367D16 #166A7D
square
#5D167D #7D2A16 #367D16 #166A7D
split-complementary
#5D167D #6A7D16 #167D2A
monochromatic
#13051A #360D49 #5D167D #841FB1 #A732DB

Accessibility & contrast

On white

11.19
#5D167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5D167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D167D
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D167D#FFFFFF#000000##FFFFFF
##5D167D1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#59304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d167d;
/* rgb */ color: rgb(93, 22, 125);
/* oklch */ color: oklch(37.4% 0.164 312.3);
Tailwind
colors: {
  custom: {
    50: '#8f5da3',
    500: '#5d167d',
    950: '#000000',
  },
}
SCSS
$custom: #5d167d;
$custom-light: #8f5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d167d",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 281.359,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37395,
    "c": 0.16374,
    "h": 312.3
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#5D167D
secondary
#61B23D
accent
#ED3B72
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D167D

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

Preview Lab → · Contrast checker → · Palette generator →

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