#5C3C8A#5C3C8A

#5C3C8A is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.2% C 0.126 H 300.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5C3C8A
RGBrgb(92, 60, 138)
HSLhsl(265, 39%, 39%)
HSVhsv(265, 57%, 54%)
CMYKcmyk(33.3%, 56.5%, 0%, 45.9%)
CIE-LABlab(32.57, 31.43, -38.55)
CIE-LCHlch(32.57, 49.74, 309.18°)
OKLaboklab(43.19% 0.0632 -0.109)
OKLCHoklch(43.19% 0.126 300.1)
XYZxyz(10.6158, 7.3419, 24.8977)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3C8A #6A8A3C
analogous
#3C438A #5C3C8A #833C8A
triadic
#5C3C8A #8A5C3C #3C8A5C
tetradic
#5C3C8A #8A3C43 #6A8A3C #3C8A83
square
#5C3C8A #8A3C43 #6A8A3C #3C8A83
split-complementary
#5C3C8A #8A833C #438A3C
monochromatic
#231735 #40295F #5C3C8A #7950B3 #997BC6

Accessibility & contrast

On white

8.51
#5C3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5C3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3C8A
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3C8A#FFFFFF#000000##FFFFFF
##5C3C8A1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#274C88
Tritanopia (blue-blind)
#534B5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5c3c8a;
/* rgb */ color: rgb(92, 60, 138);
/* oklch */ color: oklch(43.2% 0.126 300.1);
Tailwind
colors: {
  custom: {
    50: '#8d73ad',
    500: '#5c3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c3c8a;
$custom-light: #8d73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3c8a",
  "rgb": {
    "r": 92,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 264.615,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43191,
    "c": 0.12598,
    "h": 300.1
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#5C3C8A
secondary
#96AF73
accent
#CF599F
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5C3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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