#5D167F#5D167F

#5D167F is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.166 H 311.4°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5D167F
RGBrgb(93, 22, 127)
HSLhsl(281, 70%, 29%)
HSVhsv(281, 83%, 50%)
CMYKcmyk(26.8%, 82.7%, 0%, 50.2%)
CIE-LABlab(25.06, 47.78, -43.80)
CIE-LCHlch(25.06, 64.81, 317.49°)
OKLaboklab(37.56% 0.1096 -0.1242)
OKLCHoklch(37.56% 0.166 311.4)
XYZxyz(8.6311, 4.4335, 20.4756)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D167F #387F16
analogous
#28167F #5D167F #7F166D
triadic
#5D167F #7F5D16 #167F5D
tetradic
#5D167F #7F2816 #387F16 #166D7F
square
#5D167F #7F2816 #387F16 #166D7F
split-complementary
#5D167F #6D7F16 #167F28
monochromatic
#13051A #370D4B #5D167F #831FB3 #A534DC

Accessibility & contrast

On white

11.13
#5D167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5D167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D167F
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D167F#FFFFFF#000000##FFFFFF
##5D167F1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#59314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d167f;
/* rgb */ color: rgb(93, 22, 127);
/* oklch */ color: oklch(37.6% 0.166 311.4);
Tailwind
colors: {
  custom: {
    50: '#8f5da5',
    500: '#5d167f',
    950: '#000000',
  },
}
SCSS
$custom: #5d167f;
$custom-light: #8f5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d167f",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 280.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37557,
    "c": 0.16564,
    "h": 311.4
  },
  "luminance": 0.04433
}

Semantic roles & 50–950 ramp

primary
#5D167F
secondary
#63B43D
accent
#ED3B74
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D167F

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

Preview Lab → · Contrast checker → · Palette generator →

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