#5C168B#5C168B

#5C168B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.177 H 306.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5C168B
RGBrgb(92, 22, 139)
HSLhsl(276, 73%, 32%)
HSVhsv(276, 84%, 55%)
CMYKcmyk(33.8%, 84.2%, 0%, 45.5%)
CIE-LABlab(25.90, 50.28, -49.96)
CIE-LCHlch(25.90, 70.88, 315.19°)
OKLaboklab(38.43% 0.1049 -0.1423)
OKLCHoklch(38.43% 0.177 306.4)
XYZxyz(9.3597, 4.7133, 24.8378)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C168B #458B16
analogous
#21168B #5C168B #8B1680
triadic
#5C168B #8B5C16 #168B5C
tetradic
#5C168B #8B2116 #458B16 #16808B
square
#5C168B #8B2116 #458B16 #16808B
split-complementary
#5C168B #808B16 #168B21
monochromatic
#160521 #390E56 #5C168B #7F1EC0 #9E3BE0

Accessibility & contrast

On white

10.81
#5C168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C168B
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C168B#FFFFFF#000000##FFFFFF
##5C168B1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#543652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c168b;
/* rgb */ color: rgb(92, 22, 139);
/* oklch */ color: oklch(38.4% 0.177 306.4);
Tailwind
colors: {
  custom: {
    50: '#8f5eae',
    500: '#5c168b',
    950: '#000000',
  },
}
SCSS
$custom: #5c168b;
$custom-light: #8f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c168b",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 275.897,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38428,
    "c": 0.1768,
    "h": 306.4
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#5C168B
secondary
#72BF3E
accent
#EF3882
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C168B

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

Preview Lab → · Contrast checker → · Palette generator →

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