#5C2D8A#5C2D8A

#5C2D8A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.149 H 303.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5C2D8A
RGBrgb(92, 45, 138)
HSLhsl(270, 51%, 36%)
HSVhsv(270, 67%, 54%)
CMYKcmyk(33.3%, 67.4%, 0%, 45.9%)
CIE-LABlab(29.38, 39.95, -43.69)
CIE-LCHlch(29.38, 59.20, 312.44°)
OKLaboklab(40.86% 0.0826 -0.124)
OKLCHoklch(40.86% 0.149 303.7)
XYZxyz(9.9384, 5.9871, 24.6719)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D8A #5B8A2D
analogous
#2D2D8A #5C2D8A #8A2D89
triadic
#5C2D8A #8A5C2D #2D8A5C
tetradic
#5C2D8A #8A2D2D #5B8A2D #2D898A
square
#5C2D8A #8A2D2D #5B8A2D #2D898A
split-complementary
#5C2D8A #898A2D #2D8A2D
monochromatic
#1E0F2E #3D1E5C #5C2D8A #7B3CB8 #9965CD

Accessibility & contrast

On white

9.56
#5C2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5C2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D8A
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D8A#FFFFFF#000000##FFFFFF
##5C2D8A1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2d8a;
/* rgb */ color: rgb(92, 45, 138);
/* oklch */ color: oklch(40.9% 0.149 303.7);
Tailwind
colors: {
  custom: {
    50: '#8e69ad',
    500: '#5c2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d8a;
$custom-light: #8e69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d8a",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 270.323,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40863,
    "c": 0.149,
    "h": 303.7
  },
  "luminance": 0.05987
}

Semantic roles & 50–950 ramp

primary
#5C2D8A
secondary
#89B360
accent
#DA4D93
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5C2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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