#5D167C#5D167C

#5D167C is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.163 H 312.7°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5D167C
RGBrgb(93, 22, 124)
HSLhsl(282, 70%, 29%)
HSVhsv(282, 82%, 49%)
CMYKcmyk(25%, 82.3%, 0%, 51.4%)
CIE-LABlab(24.82, 47.12, -42.29)
CIE-LCHlch(24.82, 63.31, 318.10°)
OKLaboklab(37.32% 0.1103 -0.1197)
OKLCHoklch(37.32% 0.163 312.7)
XYZxyz(8.4385, 4.3565, 19.4612)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D167C #357C16
analogous
#2A167C #5D167C #7C1668
triadic
#5D167C #7C5D16 #167C5D
tetradic
#5D167C #7C2A16 #357C16 #16687C
square
#5D167C #7C2A16 #357C16 #16687C
split-complementary
#5D167C #687C16 #167C2A
monochromatic
#13051A #360D48 #5D167C #841FB0 #A732DB

Accessibility & contrast

On white

11.22
#5D167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D167C
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D167C#FFFFFF#000000##FFFFFF
##5D167C1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#043C7A
Tritanopia (blue-blind)
#592F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d167c;
/* rgb */ color: rgb(93, 22, 124);
/* oklch */ color: oklch(37.3% 0.163 312.7);
Tailwind
colors: {
  custom: {
    50: '#8f5da3',
    500: '#5d167c',
    950: '#000000',
  },
}
SCSS
$custom: #5d167c;
$custom-light: #8f5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d167c",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 281.765,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37315,
    "c": 0.16281,
    "h": 312.7
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#5D167C
secondary
#60B13D
accent
#ED3B71
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D167C

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

Preview Lab → · Contrast checker → · Palette generator →

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