#5D167E#5D167E

#5D167E is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.165 H 311.8°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#5D167E
RGBrgb(93, 22, 126)
HSLhsl(281, 70%, 29%)
HSVhsv(281, 83%, 49%)
CMYKcmyk(26.2%, 82.5%, 0%, 50.6%)
CIE-LABlab(24.98, 47.56, -43.30)
CIE-LCHlch(24.98, 64.31, 317.69°)
OKLaboklab(37.48% 0.1099 -0.1227)
OKLCHoklch(37.48% 0.165 311.8)
XYZxyz(8.5663, 4.4076, 20.1341)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D167E #377E16
analogous
#29167E #5D167E #7E166B
triadic
#5D167E #7E5D16 #167E5D
tetradic
#5D167E #7E2916 #377E16 #166B7E
square
#5D167E #7E2916 #377E16 #166B7E
split-complementary
#5D167E #6B7E16 #167E29
monochromatic
#13051A #370D4A #5D167E #831FB2 #A633DB

Accessibility & contrast

On white

11.16
#5D167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D167E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D167E#FFFFFF#000000##FFFFFF
##5D167E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#59304B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d167e;
/* rgb */ color: rgb(93, 22, 126);
/* oklch */ color: oklch(37.5% 0.165 311.8);
Tailwind
colors: {
  custom: {
    50: '#8f5da4',
    500: '#5d167e',
    950: '#000000',
  },
}
SCSS
$custom: #5d167e;
$custom-light: #8f5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d167e",
  "rgb": {
    "r": 93,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 280.962,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37476,
    "c": 0.16469,
    "h": 311.8
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#5D167E
secondary
#62B33D
accent
#ED3B73
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D167E

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

Preview Lab → · Contrast checker → · Palette generator →

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