#5C2DA3#5C2DA3

#5C2DA3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.178 H 296.2°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA3
RGBrgb(92, 45, 163)
HSLhsl(264, 57%, 41%)
HSVhsv(264, 72%, 64%)
CMYKcmyk(43.6%, 72.4%, 0%, 36.1%)
CIE-LABlab(31.34, 46.52, -55.81)
CIE-LCHlch(31.34, 72.65, 309.81°)
OKLaboklab(42.88% 0.0787 -0.1596)
OKLCHoklch(42.88% 0.178 296.2)
XYZxyz(11.9611, 6.7962, 35.3248)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA3 #74A32D
analogous
#2D39A3 #5C2DA3 #972DA3
triadic
#5C2DA3 #A35C2D #2DA35C
tetradic
#5C2DA3 #A32D39 #74A32D #2DA397
square
#5C2DA3 #A32D39 #74A32D #2DA397
split-complementary
#5C2DA3 #A3972D #39A32D
monochromatic
#261343 #412073 #5C2DA3 #7942CB #9B72D8

Accessibility & contrast

On white

8.90
#5C2DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5C2DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DA3
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA3#FFFFFF#000000##FFFFFF
##5C2DA31.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2da3;
/* rgb */ color: rgb(92, 45, 163);
/* oklch */ color: oklch(42.9% 0.178 296.2);
Tailwind
colors: {
  custom: {
    50: '#916abf',
    500: '#5c2da3',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da3;
$custom-light: #916abf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da3",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 263.898,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42877,
    "c": 0.17798,
    "h": 296.2
  },
  "luminance": 0.06796
}

Semantic roles & 50–950 ramp

primary
#5C2DA3
secondary
#9EC06C
accent
#E048A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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