#5C196B#5C196B

#5C196B is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.143 H 319.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5C196B
RGBrgb(92, 25, 107)
HSLhsl(289, 62%, 26%)
HSVhsv(289, 77%, 42%)
CMYKcmyk(14%, 76.6%, 0%, 58%)
CIE-LABlab(23.78, 42.18, -33.07)
CIE-LCHlch(23.78, 53.60, 321.91°)
OKLaboklab(36.15% 0.1088 -0.0927)
OKLCHoklch(36.15% 0.143 319.6)
XYZxyz(7.4148, 4.0325, 14.2948)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C196B #286B19
analogous
#33196B #5C196B #6B1951
triadic
#5C196B #6B5C19 #196B5C
tetradic
#5C196B #6B3319 #286B19 #19516B
square
#5C196B #6B3319 #286B19 #19516B
split-complementary
#5C196B #516B19 #196B33
monochromatic
#150619 #310D39 #5C196B #87259D #B130CE

Accessibility & contrast

On white

11.63
#5C196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5C196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C196B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C196B#FFFFFF#000000##FFFFFF
##5C196B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#203B69
Tritanopia (blue-blind)
#5C2940
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5c196b;
/* rgb */ color: rgb(92, 25, 107);
/* oklch */ color: oklch(36.1% 0.143 319.6);
Tailwind
colors: {
  custom: {
    50: '#8d5d96',
    500: '#5c196b',
    950: '#000000',
  },
}
SCSS
$custom: #5c196b;
$custom-light: #8d5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5c196b",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 289.024,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36148,
    "c": 0.14298,
    "h": 319.6
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#5C196B
secondary
#51A13F
accent
#E54360
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050D
muted
#7D797E

Preview Lab

Preview with #5C196B

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

Preview Lab → · Contrast checker → · Palette generator →

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