#5C188C#5C188C

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

Color values

HEX#5C188C
RGBrgb(92, 24, 140)
HSLhsl(275, 71%, 32%)
HSVhsv(275, 83%, 55%)
CMYKcmyk(34.3%, 82.9%, 0%, 45.1%)
CIE-LABlab(26.22, 49.83, -50.06)
CIE-LCHlch(26.22, 70.63, 314.87°)
OKLaboklab(38.68% 0.1031 -0.1426)
OKLCHoklch(38.68% 0.176 305.9)
XYZxyz(9.4728, 4.8221, 25.2376)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C188C #488C18
analogous
#22188C #5C188C #8C1882
triadic
#5C188C #8C5C18 #188C5C
tetradic
#5C188C #8C2218 #488C18 #18828C
square
#5C188C #8C2218 #488C18 #18828C
split-complementary
#5C188C #828C18 #188C22
monochromatic
#170624 #3A0F58 #5C188C #7E21C0 #9D40DE

Accessibility & contrast

On white

10.69
#5C188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C188C
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C188C#FFFFFF#000000##FFFFFF
##5C188C1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c188c;
/* rgb */ color: rgb(92, 24, 140);
/* oklch */ color: oklch(38.7% 0.176 305.9);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5c188c',
    950: '#000000',
  },
}
SCSS
$custom: #5c188c;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c188c",
  "rgb": {
    "r": 92,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 275.172,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.17599,
    "h": 305.9
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#5C188C
secondary
#75BF41
accent
#ED3A84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C188C

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

Preview Lab → · Contrast checker → · Palette generator →

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