#5C2DA5#5C2DA5

#5C2DA5 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.180 H 295.7°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5C2DA5
RGBrgb(92, 45, 165)
HSLhsl(264, 57%, 41%)
HSVhsv(264, 73%, 65%)
CMYKcmyk(44.2%, 72.7%, 0%, 35.3%)
CIE-LABlab(31.51, 47.05, -56.74)
CIE-LCHlch(31.51, 73.71, 309.67°)
OKLaboklab(43.05% 0.0782 -0.1624)
OKLCHoklch(43.05% 0.18 295.7)
XYZxyz(12.1417, 6.8684, 36.2760)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DA5 #76A52D
analogous
#2D3AA5 #5C2DA5 #982DA5
triadic
#5C2DA5 #A55C2D #2DA55C
tetradic
#5C2DA5 #A52D3A #76A52D #2DA598
square
#5C2DA5 #A52D3A #76A52D #2DA598
split-complementary
#5C2DA5 #A5982D #3AA52D
monochromatic
#261345 #412075 #5C2DA5 #7943CC #9B73D9

Accessibility & contrast

On white

8.85
#5C2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5C2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DA5
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DA5#FFFFFF#000000##FFFFFF
##5C2DA51.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#484C66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5c2da5;
/* rgb */ color: rgb(92, 45, 165);
/* oklch */ color: oklch(43.0% 0.180 295.7);
Tailwind
colors: {
  custom: {
    50: '#916ac1',
    500: '#5c2da5',
    950: '#000000',
  },
}
SCSS
$custom: #5c2da5;
$custom-light: #916ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2da5",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 263.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43048,
    "c": 0.18026,
    "h": 295.7
  },
  "luminance": 0.06869
}

Semantic roles & 50–950 ramp

primary
#5C2DA5
secondary
#A0C16D
accent
#E047A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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