#5C167D#5C167D

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

Color values

HEX#5C167D
RGBrgb(92, 22, 125)
HSLhsl(281, 70%, 29%)
HSVhsv(281, 82%, 49%)
CMYKcmyk(26.4%, 82.4%, 0%, 51%)
CIE-LABlab(24.73, 47.15, -43.06)
CIE-LCHlch(24.73, 63.86, 317.60°)
OKLaboklab(37.25% 0.1087 -0.122)
OKLCHoklch(37.25% 0.163 311.7)
XYZxyz(8.4015, 4.3300, 19.7913)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C167D #377D16
analogous
#29167D #5C167D #7D166B
triadic
#5C167D #7D5C16 #167D5C
tetradic
#5C167D #7D2916 #377D16 #166B7D
square
#5C167D #7D2916 #377D16 #166B7D
split-complementary
#5C167D #6B7D16 #167D29
monochromatic
#13051A #360D49 #5C167D #821FB1 #A532DB

Accessibility & contrast

On white

11.25
#5C167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C167D
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C167D#FFFFFF#000000##FFFFFF
##5C167D1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#58304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c167d;
/* rgb */ color: rgb(92, 22, 125);
/* oklch */ color: oklch(37.2% 0.163 311.7);
Tailwind
colors: {
  custom: {
    50: '#8e5da3',
    500: '#5c167d',
    950: '#000000',
  },
}
SCSS
$custom: #5c167d;
$custom-light: #8e5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c167d",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 280.777,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37249,
    "c": 0.16342,
    "h": 311.7
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#5C167D
secondary
#62B23D
accent
#ED3B74
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5C167D

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

Preview Lab → · Contrast checker → · Palette generator →

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