#5C2DA2#5C2DA2

#5C2DA2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.177 H 296.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA2
RGBrgb(92, 45, 162)
HSLhsl(264, 57%, 41%)
HSVhsv(264, 72%, 64%)
CMYKcmyk(43.2%, 72.2%, 0%, 36.5%)
CIE-LABlab(31.26, 46.25, -55.34)
CIE-LCHlch(31.26, 72.12, 309.89°)
OKLaboklab(42.79% 0.0789 -0.1583)
OKLCHoklch(42.79% 0.177 296.5)
XYZxyz(11.8719, 6.7605, 34.8548)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA2 #73A22D
analogous
#2D38A2 #5C2DA2 #972DA2
triadic
#5C2DA2 #A25C2D #2DA25C
tetradic
#5C2DA2 #A22D38 #73A22D #2DA297
square
#5C2DA2 #A22D38 #73A22D #2DA297
split-complementary
#5C2DA2 #A2972D #38A22D
monochromatic
#261242 #412072 #5C2DA2 #7942CA #9B72D8

Accessibility & contrast

On white

8.93
#5C2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5C2DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DA2
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA2#FFFFFF#000000##FFFFFF
##5C2DA21.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4A4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2da2;
/* rgb */ color: rgb(92, 45, 162);
/* oklch */ color: oklch(42.8% 0.177 296.5);
Tailwind
colors: {
  custom: {
    50: '#916abe',
    500: '#5c2da2',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da2;
$custom-light: #916abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da2",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 264.103,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42792,
    "c": 0.17683,
    "h": 296.5
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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