#5C168D#5C168D

#5C168D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.179 H 305.7°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5C168D
RGBrgb(92, 22, 141)
HSLhsl(275, 73%, 32%)
HSVhsv(275, 84%, 55%)
CMYKcmyk(34.8%, 84.4%, 0%, 44.7%)
CIE-LABlab(26.08, 50.74, -50.92)
CIE-LCHlch(26.08, 71.88, 314.90°)
OKLaboklab(38.6% 0.1043 -0.1451)
OKLCHoklch(38.6% 0.179 305.7)
XYZxyz(9.5072, 4.7723, 25.6144)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C168D #478D16
analogous
#21168D #5C168D #8D1683
triadic
#5C168D #8D5C16 #168D5C
tetradic
#5C168D #8D2116 #478D16 #16838D
square
#5C168D #8D2116 #478D16 #16838D
split-complementary
#5C168D #838D16 #168D21
monochromatic
#170523 #390E58 #5C168D #7F1EC2 #9D3DE1

Accessibility & contrast

On white

10.74
#5C168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C168D
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C168D#FFFFFF#000000##FFFFFF
##5C168D1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c168d;
/* rgb */ color: rgb(92, 22, 141);
/* oklch */ color: oklch(38.6% 0.179 305.7);
Tailwind
colors: {
  custom: {
    50: '#905eaf',
    500: '#5c168d',
    950: '#000000',
  },
}
SCSS
$custom: #5c168d;
$custom-light: #905eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c168d",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 275.294,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38602,
    "c": 0.17872,
    "h": 305.7
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#5C168D
secondary
#74C13E
accent
#F03884
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C168D

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

Preview Lab → · Contrast checker → · Palette generator →

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