#5C1788#5C1788

#5C1788 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.173 H 307.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#5C1788
RGBrgb(92, 23, 136)
HSLhsl(277, 71%, 31%)
HSVhsv(277, 83%, 53%)
CMYKcmyk(32.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(25.76, 49.26, -48.32)
CIE-LCHlch(25.76, 69.00, 315.56°)
OKLaboklab(38.25% 0.1051 -0.1375)
OKLCHoklch(38.25% 0.173 307.4)
XYZxyz(9.1630, 4.6658, 23.7057)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1788 #438817
analogous
#231788 #5C1788 #88177B
triadic
#5C1788 #885C17 #17885C
tetradic
#5C1788 #882317 #438817 #177B88
square
#5C1788 #882317 #438817 #177B88
split-complementary
#5C1788 #7B8817 #178823
monochromatic
#15051F #390E54 #5C1788 #7F20BC #9F3BDE

Accessibility & contrast

On white

10.86
#5C1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1788
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1788#FFFFFF#000000##FFFFFF
##5C17881.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1788;
/* rgb */ color: rgb(92, 23, 136);
/* oklch */ color: oklch(38.3% 0.173 307.4);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5c1788',
    950: '#000000',
  },
}
SCSS
$custom: #5c1788;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1788",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 276.637,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3825,
    "c": 0.17302,
    "h": 307.4
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#5C1788
secondary
#70BC3F
accent
#EE3A80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1788

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

Preview Lab → · Contrast checker → · Palette generator →

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