#5C2168#5C2168

#5C2168 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 36.8% C 0.129 H 320.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5C2168
RGBrgb(92, 33, 104)
HSLhsl(290, 52%, 27%)
HSVhsv(290, 68%, 41%)
CMYKcmyk(11.5%, 68.3%, 0%, 59.2%)
CIE-LABlab(24.84, 38.02, -29.43)
CIE-LCHlch(24.84, 48.08, 322.26°)
OKLaboklab(36.84% 0.0996 -0.0821)
OKLCHoklch(36.84% 0.129 320.5)
XYZxyz(7.4559, 4.3629, 13.5434)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2168 #2D6821
analogous
#392168 #5C2168 #682151
triadic
#5C2168 #685C21 #21685C
tetradic
#5C2168 #683921 #2D6821 #215168
square
#5C2168 #683921 #2D6821 #215168
split-complementary
#5C2168 #516821 #216839
monochromatic
#150717 #33123A #5C2168 #853096 #AD41C3

Accessibility & contrast

On white

11.21
#5C2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5C2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2168
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2168#FFFFFF#000000##FFFFFF
##5C21681.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D376A
Deuteranopia (green-blind)
#283D66
Tritanopia (blue-blind)
#5D2D41
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5c2168;
/* rgb */ color: rgb(92, 33, 104);
/* oklch */ color: oklch(36.8% 0.129 320.5);
Tailwind
colors: {
  custom: {
    50: '#8d6193',
    500: '#5c2168',
    950: '#000000',
  },
}
SCSS
$custom: #5c2168;
$custom-light: #8d6193;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2168",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 289.859,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36843,
    "c": 0.12908,
    "h": 320.5
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#5C2168
secondary
#579C49
accent
#DB4D65
background
#F8F5F9
surface
#F0EAF1
border
#CBC6CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5C2168

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

Preview Lab → · Contrast checker → · Palette generator →

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