#5C1589#5C1589

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

Color values

HEX#5C1589
RGBrgb(92, 21, 137)
HSLhsl(277, 73%, 31%)
HSVhsv(277, 85%, 54%)
CMYKcmyk(32.8%, 84.7%, 0%, 46.3%)
CIE-LABlab(25.62, 50.16, -49.17)
CIE-LCHlch(25.62, 70.24, 315.57°)
OKLaboklab(38.18% 0.1063 -0.14)
OKLCHoklch(38.18% 0.176 307.2)
XYZxyz(9.1962, 4.6179, 24.0689)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1589 #428915
analogous
#221589 #5C1589 #89157C
triadic
#5C1589 #895C15 #15895C
tetradic
#5C1589 #892215 #428915 #157C89
square
#5C1589 #892215 #428915 #157C89
split-complementary
#5C1589 #7C8915 #158922
monochromatic
#15051F #380D54 #5C1589 #801DBE #9F38E0

Accessibility & contrast

On white

10.92
#5C1589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5C1589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1589
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1589#FFFFFF#000000##FFFFFF
##5C15891.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c1589;
/* rgb */ color: rgb(92, 21, 137);
/* oklch */ color: oklch(38.2% 0.176 307.2);
Tailwind
colors: {
  custom: {
    50: '#8f5dac',
    500: '#5c1589',
    950: '#000000',
  },
}
SCSS
$custom: #5c1589;
$custom-light: #8f5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1589",
  "rgb": {
    "r": 92,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 276.724,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38176,
    "c": 0.17575,
    "h": 307.2
  },
  "luminance": 0.04618
}

Semantic roles & 50–950 ramp

primary
#5C1589
secondary
#6FBD3D
accent
#F0387F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1589

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

Preview Lab → · Contrast checker → · Palette generator →

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