#5C168C#5C168C

#5C168C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.178 H 306.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5C168C
RGBrgb(92, 22, 140)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(34.3%, 84.3%, 0%, 45.1%)
CIE-LABlab(25.99, 50.51, -50.44)
CIE-LCHlch(25.99, 71.38, 315.04°)
OKLaboklab(38.52% 0.1046 -0.1437)
OKLCHoklch(38.52% 0.178 306.1)
XYZxyz(9.4331, 4.7427, 25.2243)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C168C #468C16
analogous
#21168C #5C168C #8C1681
triadic
#5C168C #8C5C16 #168C5C
tetradic
#5C168C #8C2116 #468C16 #16818C
square
#5C168C #8C2116 #468C16 #16818C
split-complementary
#5C168C #818C16 #168C21
monochromatic
#160522 #390E57 #5C168C #7F1EC1 #9E3CE0

Accessibility & contrast

On white

10.78
#5C168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C168C
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C168C#FFFFFF#000000##FFFFFF
##5C168C1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#533753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c168c;
/* rgb */ color: rgb(92, 22, 140);
/* oklch */ color: oklch(38.5% 0.178 306.1);
Tailwind
colors: {
  custom: {
    50: '#905eae',
    500: '#5c168c',
    950: '#000000',
  },
}
SCSS
$custom: #5c168c;
$custom-light: #905eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c168c",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 275.593,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38515,
    "c": 0.17776,
    "h": 306.1
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#5C168C
secondary
#73C03E
accent
#F03883
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C168C

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

Preview Lab → · Contrast checker → · Palette generator →

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