#5C2C8A#5C2C8A

#5C2C8A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.150 H 303.8°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5C2C8A
RGBrgb(92, 44, 138)
HSLhsl(271, 52%, 36%)
HSVhsv(271, 68%, 54%)
CMYKcmyk(33.3%, 68.1%, 0%, 45.9%)
CIE-LABlab(29.19, 40.48, -44.00)
CIE-LCHlch(29.19, 59.79, 312.62°)
OKLaboklab(40.73% 0.0838 -0.1249)
OKLCHoklch(40.73% 0.15 303.8)
XYZxyz(9.9007, 5.9117, 24.6593)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2C8A #5A8A2C
analogous
#2D2C8A #5C2C8A #8A2C89
triadic
#5C2C8A #8A5C2C #2C8A5C
tetradic
#5C2C8A #8A2D2C #5A8A2C #2C898A
square
#5C2C8A #8A2D2C #5A8A2C #2C898A
split-complementary
#5C2C8A #898A2C #2C8A2D
monochromatic
#1E0E2D #3D1D5C #5C2C8A #7B3BB8 #9963CD

Accessibility & contrast

On white

9.62
#5C2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5C2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2C8A
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2C8A#FFFFFF#000000##FFFFFF
##5C2C8A1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#0A4588
Tritanopia (blue-blind)
#534157
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c2c8a;
/* rgb */ color: rgb(92, 44, 138);
/* oklch */ color: oklch(40.7% 0.150 303.8);
Tailwind
colors: {
  custom: {
    50: '#8e69ad',
    500: '#5c2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c2c8a;
$custom-light: #8e69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2c8a",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 270.638,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40726,
    "c": 0.15042,
    "h": 303.8
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

primary
#5C2C8A
secondary
#88B45E
accent
#DB4D92
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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