#5C2DB6#5C2DB6

#5C2DB6 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.199 H 291.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5C2DB6
RGBrgb(92, 45, 182)
HSLhsl(261, 60%, 45%)
HSVhsv(261, 75%, 71%)
CMYKcmyk(49.5%, 75.3%, 0%, 28.6%)
CIE-LABlab(32.98, 51.62, -64.49)
CIE-LCHlch(32.98, 82.61, 308.67°)
OKLaboklab(44.54% 0.0742 -0.1851)
OKLCHoklch(44.54% 0.199 291.8)
XYZxyz(13.7931, 7.5290, 44.9734)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DB6 #87B62D
analogous
#2D43B6 #5C2DB6 #A12DB6
triadic
#5C2DB6 #B65C2D #2DB65C
tetradic
#5C2DB6 #B62D43 #87B62D #2DB6A1
square
#5C2DB6 #B62D43 #87B62D #2DB6A1
split-complementary
#5C2DB6 #B6A12D #43B62D
monochromatic
#2A1554 #432185 #5C2DB6 #7B4DD3 #9F7EDF

Accessibility & contrast

On white

8.38
#5C2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5C2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DB6
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DB6#FFFFFF#000000##FFFFFF
##5C2DB61.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#3E5270
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c2db6;
/* rgb */ color: rgb(92, 45, 182);
/* oklch */ color: oklch(44.5% 0.199 291.8);
Tailwind
colors: {
  custom: {
    50: '#936bcd',
    500: '#5c2db6',
    950: '#000000',
  },
}
SCSS
$custom: #5c2db6;
$custom-light: #936bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2db6",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 260.584,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44544,
    "c": 0.19946,
    "h": 291.8
  },
  "luminance": 0.07529
}

Semantic roles & 50–950 ramp

primary
#5C2DB6
secondary
#ACC877
accent
#E344AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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