#5C168A#5C168A

#5C168A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.176 H 306.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5C168A
RGBrgb(92, 22, 138)
HSLhsl(276, 73%, 31%)
HSVhsv(276, 84%, 54%)
CMYKcmyk(33.3%, 84.1%, 0%, 45.9%)
CIE-LABlab(25.82, 50.05, -49.48)
CIE-LCHlch(25.82, 70.38, 315.33°)
OKLaboklab(38.34% 0.1052 -0.1409)
OKLCHoklch(38.34% 0.176 306.8)
XYZxyz(9.2870, 4.6842, 24.4547)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C168A #448A16
analogous
#22168A #5C168A #8A167E
triadic
#5C168A #8A5C16 #168A5C
tetradic
#5C168A #8A2216 #448A16 #167E8A
square
#5C168A #8A2216 #448A16 #167E8A
split-complementary
#5C168A #7E8A16 #168A22
monochromatic
#160520 #390E55 #5C168A #7F1EBF #9E3BE0

Accessibility & contrast

On white

10.84
#5C168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5C168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C168A
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C168A#FFFFFF#000000##FFFFFF
##5C168A1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#543651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c168a;
/* rgb */ color: rgb(92, 22, 138);
/* oklch */ color: oklch(38.3% 0.176 306.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ead',
    500: '#5c168a',
    950: '#000000',
  },
}
SCSS
$custom: #5c168a;
$custom-light: #8f5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5c168a",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 276.207,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38341,
    "c": 0.17584,
    "h": 306.8
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#5C168A
secondary
#71BE3E
accent
#EF3981
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C168A

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

Preview Lab → · Contrast checker → · Palette generator →

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