#5C167E#5C167E

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

Color values

HEX#5C167E
RGBrgb(92, 22, 126)
HSLhsl(280, 70%, 29%)
HSVhsv(280, 83%, 49%)
CMYKcmyk(27%, 82.5%, 0%, 50.6%)
CIE-LABlab(24.81, 47.37, -43.56)
CIE-LCHlch(24.81, 64.36, 317.40°)
OKLaboklab(37.33% 0.1085 -0.1235)
OKLCHoklch(37.33% 0.164 311.3)
XYZxyz(8.4657, 4.3557, 20.1294)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C167E #387E16
analogous
#28167E #5C167E #7E166C
triadic
#5C167E #7E5C16 #167E5C
tetradic
#5C167E #7E2816 #387E16 #166C7E
square
#5C167E #7E2816 #387E16 #166C7E
split-complementary
#5C167E #6C7E16 #167E28
monochromatic
#13051A #360D4A #5C167E #821FB2 #A433DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C167E#FFFFFF#000000##FFFFFF
##5C167E1.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)
#003881
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#58304B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c167e;
/* rgb */ color: rgb(92, 22, 126);
/* oklch */ color: oklch(37.3% 0.164 311.3);
Tailwind
colors: {
  custom: {
    50: '#8e5da4',
    500: '#5c167e',
    950: '#000000',
  },
}
SCSS
$custom: #5c167e;
$custom-light: #8e5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c167e",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 280.385,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3733,
    "c": 0.16437,
    "h": 311.3
  },
  "luminance": 0.04355
}

Semantic roles & 50–950 ramp

primary
#5C167E
secondary
#63B33D
accent
#ED3B75
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C167E

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

Preview Lab → · Contrast checker → · Palette generator →

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