#5C167F#5C167F

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

Color values

HEX#5C167F
RGBrgb(92, 22, 127)
HSLhsl(280, 70%, 29%)
HSVhsv(280, 83%, 50%)
CMYKcmyk(27.6%, 82.7%, 0%, 50.2%)
CIE-LABlab(24.89, 47.59, -44.07)
CIE-LCHlch(24.89, 64.86, 317.20°)
OKLaboklab(37.41% 0.1082 -0.125)
OKLCHoklch(37.41% 0.165 310.9)
XYZxyz(8.5306, 4.3816, 20.4709)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C167F #397F16
analogous
#28167F #5C167F #7F166E
triadic
#5C167F #7F5C16 #167F5C
tetradic
#5C167F #7F2816 #397F16 #166E7F
square
#5C167F #7F2816 #397F16 #166E7F
split-complementary
#5C167F #6E7F16 #167F28
monochromatic
#13051A #360D4B #5C167F #821FB3 #A434DC

Accessibility & contrast

On white

11.19
#5C167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C167F
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C167F#FFFFFF#000000##FFFFFF
##5C167F1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c167f;
/* rgb */ color: rgb(92, 22, 127);
/* oklch */ color: oklch(37.4% 0.165 310.9);
Tailwind
colors: {
  custom: {
    50: '#8f5da5',
    500: '#5c167f',
    950: '#000000',
  },
}
SCSS
$custom: #5c167f;
$custom-light: #8f5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c167f",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 280,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37412,
    "c": 0.16532,
    "h": 310.9
  },
  "luminance": 0.04381
}

Semantic roles & 50–950 ramp

primary
#5C167F
secondary
#65B43D
accent
#ED3B76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C167F

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

Preview Lab → · Contrast checker → · Palette generator →

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