#5C2DB2#5C2DB2

#5C2DB2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.195 H 292.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5C2DB2
RGBrgb(92, 45, 178)
HSLhsl(261, 60%, 44%)
HSVhsv(261, 75%, 70%)
CMYKcmyk(48.3%, 74.7%, 0%, 30.2%)
CIE-LABlab(32.63, 50.54, -62.70)
CIE-LCHlch(32.63, 80.54, 308.87°)
OKLaboklab(44.19% 0.0752 -0.1799)
OKLCHoklch(44.19% 0.195 292.7)
XYZxyz(13.3857, 7.3660, 42.8273)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DB2 #83B22D
analogous
#2D40B2 #5C2DB2 #9E2DB2
triadic
#5C2DB2 #B25C2D #2DB25C
tetradic
#5C2DB2 #B22D40 #83B22D #2DB29E
square
#5C2DB2 #B22D40 #83B22D #2DB29E
split-complementary
#5C2DB2 #B29E2D #40B22D
monochromatic
#2A1450 #432181 #5C2DB2 #7A4BD1 #9E7CDE

Accessibility & contrast

On white

8.49
#5C2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2DB2
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DB2#FFFFFF#000000##FFFFFF
##5C2DB21.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#41516D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5c2db2;
/* rgb */ color: rgb(92, 45, 178);
/* oklch */ color: oklch(44.2% 0.195 292.7);
Tailwind
colors: {
  custom: {
    50: '#936bca',
    500: '#5c2db2',
    950: '#000000',
  },
}
SCSS
$custom: #5c2db2;
$custom-light: #936bca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2db2",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 261.203,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44185,
    "c": 0.19498,
    "h": 292.7
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

primary
#5C2DB2
secondary
#A9C675
accent
#E345AB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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