#5C2DA1#5C2DA1

#5C2DA1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.176 H 296.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA1
RGBrgb(92, 45, 161)
HSLhsl(264, 56%, 40%)
HSVhsv(264, 72%, 63%)
CMYKcmyk(42.9%, 72%, 0%, 36.9%)
CIE-LABlab(31.17, 45.98, -54.87)
CIE-LCHlch(31.17, 71.59, 309.97°)
OKLaboklab(42.71% 0.0791 -0.1569)
OKLCHoklch(42.71% 0.176 296.7)
XYZxyz(11.7834, 6.7251, 34.3885)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA1 #72A12D
analogous
#2D38A1 #5C2DA1 #962DA1
triadic
#5C2DA1 #A15C2D #2DA15C
tetradic
#5C2DA1 #A12D38 #72A12D #2DA196
square
#5C2DA1 #A12D38 #72A12D #2DA196
split-complementary
#5C2DA1 #A1962D #38A12D
monochromatic
#251241 #412071 #5C2DA1 #7941CA #9B71D7

Accessibility & contrast

On white

8.96
#5C2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2DA1
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA1#FFFFFF#000000##FFFFFF
##5C2DA11.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#4A4A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c2da1;
/* rgb */ color: rgb(92, 45, 161);
/* oklch */ color: oklch(42.7% 0.176 296.7);
Tailwind
colors: {
  custom: {
    50: '#906abe',
    500: '#5c2da1',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da1;
$custom-light: #906abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da1",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 264.31,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42708,
    "c": 0.17568,
    "h": 296.7
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#5C2DA1
secondary
#9DBF6B
accent
#E048A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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