#5C168E#5C168E

#5C168E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.180 H 305.4°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5C168E
RGBrgb(92, 22, 142)
HSLhsl(275, 73%, 32%)
HSVhsv(275, 85%, 56%)
CMYKcmyk(35.2%, 84.5%, 0%, 44.3%)
CIE-LABlab(26.16, 50.97, -51.40)
CIE-LCHlch(26.16, 72.38, 314.76°)
OKLaboklab(38.69% 0.104 -0.1465)
OKLCHoklch(38.69% 0.18 305.4)
XYZxyz(9.5819, 4.8022, 26.0081)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C168E #488E16
analogous
#20168E #5C168E #8E1684
triadic
#5C168E #8E5C16 #168E5C
tetradic
#5C168E #8E2016 #488E16 #16848E
square
#5C168E #8E2016 #488E16 #16848E
split-complementary
#5C168E #848E16 #168E20
monochromatic
#170624 #3A0E59 #5C168E #7E1EC3 #9D3DE1

Accessibility & contrast

On white

10.71
#5C168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C168E
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C168E#FFFFFF#000000##FFFFFF
##5C168E1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#523854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c168e;
/* rgb */ color: rgb(92, 22, 142);
/* oklch */ color: oklch(38.7% 0.180 305.4);
Tailwind
colors: {
  custom: {
    50: '#905eb0',
    500: '#5c168e',
    950: '#000000',
  },
}
SCSS
$custom: #5c168e;
$custom-light: #905eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c168e",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 275,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3869,
    "c": 0.17968,
    "h": 305.4
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#5C168E
secondary
#75C13F
accent
#F03885
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C168E

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

Preview Lab → · Contrast checker → · Palette generator →

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