#5C167A#5C167A

#5C167A is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.161 H 312.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5C167A
RGBrgb(92, 22, 122)
HSLhsl(282, 69%, 28%)
HSVhsv(282, 82%, 48%)
CMYKcmyk(24.6%, 82%, 0%, 52.2%)
CIE-LABlab(24.50, 46.50, -41.54)
CIE-LCHlch(24.50, 62.35, 318.22°)
OKLaboklab(37.01% 0.1094 -0.1176)
OKLCHoklch(37.01% 0.161 312.9)
XYZxyz(8.2128, 4.2545, 18.7972)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C167A #347A16
analogous
#2A167A #5C167A #7A1666
triadic
#5C167A #7A5C16 #167A5C
tetradic
#5C167A #7A2A16 #347A16 #16667A
square
#5C167A #7A2A16 #347A16 #16667A
split-complementary
#5C167A #667A16 #167A2A
monochromatic
#14051A #350D46 #5C167A #831FAE #A731DA

Accessibility & contrast

On white

11.35
#5C167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5C167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C167A
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C167A#FFFFFF#000000##FFFFFF
##5C167A1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#063C78
Tritanopia (blue-blind)
#592E48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c167a;
/* rgb */ color: rgb(92, 22, 122);
/* oklch */ color: oklch(37.0% 0.161 312.9);
Tailwind
colors: {
  custom: {
    50: '#8e5da1',
    500: '#5c167a',
    950: '#000000',
  },
}
SCSS
$custom: #5c167a;
$custom-light: #8e5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c167a",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 282,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37007,
    "c": 0.16058,
    "h": 312.9
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#5C167A
secondary
#5FAF3D
accent
#EC3C71
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C167A

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

Preview Lab → · Contrast checker → · Palette generator →

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