#5C1785#5C1785

#5C1785 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.170 H 308.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5C1785
RGBrgb(92, 23, 133)
HSLhsl(278, 71%, 31%)
HSVhsv(278, 83%, 52%)
CMYKcmyk(30.8%, 82.7%, 0%, 47.8%)
CIE-LABlab(25.51, 48.58, -46.85)
CIE-LCHlch(25.51, 67.49, 316.04°)
OKLaboklab(38% 0.1059 -0.1332)
OKLCHoklch(38% 0.17 308.5)
XYZxyz(8.9528, 4.5817, 22.5985)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1785 #408517
analogous
#251785 #5C1785 #851777
triadic
#5C1785 #855C17 #17855C
tetradic
#5C1785 #852517 #408517 #177785
square
#5C1785 #852517 #408517 #177785
split-complementary
#5C1785 #778517 #178525
monochromatic
#14051D #380E51 #5C1785 #8020B9 #A03ADD

Accessibility & contrast

On white

10.96
#5C1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1785
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1785#FFFFFF#000000##FFFFFF
##5C17851.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#55344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5c1785;
/* rgb */ color: rgb(92, 23, 133);
/* oklch */ color: oklch(38.0% 0.170 308.5);
Tailwind
colors: {
  custom: {
    50: '#8f5ea9',
    500: '#5c1785',
    950: '#000000',
  },
}
SCSS
$custom: #5c1785;
$custom-light: #8f5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1785",
  "rgb": {
    "r": 92,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 277.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37995,
    "c": 0.17013,
    "h": 308.5
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#5C1785
secondary
#6CB93F
accent
#ED3B7D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1785

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

Preview Lab → · Contrast checker → · Palette generator →

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