#5C1688#5C1688

#5C1688 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.174 H 307.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#5C1688
RGBrgb(92, 22, 136)
HSLhsl(277, 72%, 31%)
HSVhsv(277, 84%, 53%)
CMYKcmyk(32.4%, 83.8%, 0%, 46.7%)
CIE-LABlab(25.64, 49.60, -48.51)
CIE-LCHlch(25.64, 69.38, 315.64°)
OKLaboklab(38.17% 0.1058 -0.138)
OKLCHoklch(38.17% 0.174 307.5)
XYZxyz(9.1435, 4.6268, 23.6992)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1688 #428816
analogous
#231688 #5C1688 #88167B
triadic
#5C1688 #885C16 #16885C
tetradic
#5C1688 #882316 #428816 #167B88
square
#5C1688 #882316 #428816 #167B88
split-complementary
#5C1688 #7B8816 #168823
monochromatic
#15051F #380D53 #5C1688 #801FBD #9F39DF

Accessibility & contrast

On white

10.91
#5C1688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5C1688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1688
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1688#FFFFFF#000000##FFFFFF
##5C16881.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#543550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c1688;
/* rgb */ color: rgb(92, 22, 136);
/* oklch */ color: oklch(38.2% 0.174 307.5);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5c1688',
    950: '#000000',
  },
}
SCSS
$custom: #5c1688;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1688",
  "rgb": {
    "r": 92,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 276.842,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38168,
    "c": 0.17393,
    "h": 307.5
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#5C1688
secondary
#6FBC3E
accent
#EF397F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1688

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

Preview Lab → · Contrast checker → · Palette generator →

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