#5C2DB4#5C2DB4

#5C2DB4 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.197 H 292.3°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5C2DB4
RGBrgb(92, 45, 180)
HSLhsl(261, 60%, 44%)
HSVhsv(261, 75%, 71%)
CMYKcmyk(48.9%, 75%, 0%, 29.4%)
CIE-LABlab(32.80, 51.08, -63.60)
CIE-LCHlch(32.80, 81.57, 308.77°)
OKLaboklab(44.36% 0.0747 -0.1825)
OKLCHoklch(44.36% 0.197 292.3)
XYZxyz(13.5879, 7.4469, 43.8926)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DB4 #85B42D
analogous
#2D42B4 #5C2DB4 #A02DB4
triadic
#5C2DB4 #B45C2D #2DB45C
tetradic
#5C2DB4 #B42D42 #85B42D #2DB4A0
square
#5C2DB4 #B42D42 #85B42D #2DB4A0
split-complementary
#5C2DB4 #B4A02D #42B42D
monochromatic
#2A1552 #432183 #5C2DB4 #7B4CD2 #9F7DDE

Accessibility & contrast

On white

8.44
#5C2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5C2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DB4
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DB4#FFFFFF#000000##FFFFFF
##5C2DB41.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#40526E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5c2db4;
/* rgb */ color: rgb(92, 45, 180);
/* oklch */ color: oklch(44.4% 0.197 292.3);
Tailwind
colors: {
  custom: {
    50: '#936bcc',
    500: '#5c2db4',
    950: '#000000',
  },
}
SCSS
$custom: #5c2db4;
$custom-light: #936bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2db4",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 260.889,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44364,
    "c": 0.19722,
    "h": 292.3
  },
  "luminance": 0.07447
}

Semantic roles & 50–950 ramp

primary
#5C2DB4
secondary
#ABC776
accent
#E345AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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