#5C167C#5C167C

#5C167C is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.162 H 312.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#5C167C
RGBrgb(92, 22, 124)
HSLhsl(281, 70%, 29%)
HSVhsv(281, 82%, 49%)
CMYKcmyk(25.8%, 82.3%, 0%, 51.4%)
CIE-LABlab(24.65, 46.93, -42.56)
CIE-LCHlch(24.65, 63.36, 317.80°)
OKLaboklab(37.17% 0.1089 -0.1205)
OKLCHoklch(37.17% 0.162 312.1)
XYZxyz(8.3380, 4.3046, 19.4565)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C167C #367C16
analogous
#29167C #5C167C #7C1669
triadic
#5C167C #7C5C16 #167C5C
tetradic
#5C167C #7C2916 #367C16 #16697C
square
#5C167C #7C2916 #367C16 #16697C
split-complementary
#5C167C #697C16 #167C29
monochromatic
#13051A #350D48 #5C167C #831FB0 #A632DB

Accessibility & contrast

On white

11.29
#5C167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5C167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C167C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C167C#FFFFFF#000000##FFFFFF
##5C167C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#013C7A
Tritanopia (blue-blind)
#582F49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c167c;
/* rgb */ color: rgb(92, 22, 124);
/* oklch */ color: oklch(37.2% 0.162 312.1);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5c167c',
    950: '#000000',
  },
}
SCSS
$custom: #5c167c;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c167c",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 281.176,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37168,
    "c": 0.16247,
    "h": 312.1
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#5C167C
secondary
#61B13D
accent
#ED3B73
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C167C

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

Preview Lab → · Contrast checker → · Palette generator →

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