#5C167B#5C167B

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

Color values

HEX#5C167B
RGBrgb(92, 22, 123)
HSLhsl(282, 70%, 28%)
HSVhsv(282, 82%, 48%)
CMYKcmyk(25.2%, 82.1%, 0%, 51.8%)
CIE-LABlab(24.57, 46.72, -42.05)
CIE-LCHlch(24.57, 62.85, 318.01°)
OKLaboklab(37.09% 0.1092 -0.1191)
OKLCHoklch(37.09% 0.162 312.5)
XYZxyz(8.2750, 4.2794, 19.1252)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C167B #357B16
analogous
#29167B #5C167B #7B1667
triadic
#5C167B #7B5C16 #167B5C
tetradic
#5C167B #7B2916 #357B16 #16677B
square
#5C167B #7B2916 #357B16 #16677B
split-complementary
#5C167B #677B16 #167B29
monochromatic
#13051A #350D47 #5C167B #831FAF #A631DA

Accessibility & contrast

On white

11.32
#5C167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C167B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C167B#FFFFFF#000000##FFFFFF
##5C167B1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#043C79
Tritanopia (blue-blind)
#582F49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c167b;
/* rgb */ color: rgb(92, 22, 123);
/* oklch */ color: oklch(37.1% 0.162 312.5);
Tailwind
colors: {
  custom: {
    50: '#8e5da2',
    500: '#5c167b',
    950: '#000000',
  },
}
SCSS
$custom: #5c167b;
$custom-light: #8e5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c167b",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 281.584,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37087,
    "c": 0.16152,
    "h": 312.5
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#5C167B
secondary
#60B03D
accent
#EC3B72
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C167B

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

Preview Lab → · Contrast checker → · Palette generator →

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