#5C2DA4#5C2DA4

#5C2DA4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.179 H 296.0°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA4
RGBrgb(92, 45, 164)
HSLhsl(264, 57%, 41%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(43.9%, 72.6%, 0%, 35.7%)
CIE-LABlab(31.42, 46.78, -56.28)
CIE-LCHlch(31.42, 73.18, 309.74°)
OKLaboklab(42.96% 0.0785 -0.161)
OKLCHoklch(42.96% 0.179 296)
XYZxyz(12.0511, 6.8321, 35.7986)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA4 #75A42D
analogous
#2D3AA4 #5C2DA4 #972DA4
triadic
#5C2DA4 #A45C2D #2DA45C
tetradic
#5C2DA4 #A42D3A #75A42D #2DA497
square
#5C2DA4 #A42D3A #75A42D #2DA497
split-complementary
#5C2DA4 #A4972D #3AA42D
monochromatic
#261344 #412074 #5C2DA4 #7943CB #9B73D9

Accessibility & contrast

On white

8.87
#5C2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5C2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DA4
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA4#FFFFFF#000000##FFFFFF
##5C2DA41.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#494B65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2da4;
/* rgb */ color: rgb(92, 45, 164);
/* oklch */ color: oklch(43.0% 0.179 296.0);
Tailwind
colors: {
  custom: {
    50: '#916ac0',
    500: '#5c2da4',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da4;
$custom-light: #916ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da4",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 263.697,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42962,
    "c": 0.17911,
    "h": 296
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#5C2DA4
secondary
#9FC06D
accent
#E048A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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