#5D2CA5#5D2CA5

#5D2CA5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.182 H 296.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5D2CA5
RGBrgb(93, 44, 165)
HSLhsl(264, 58%, 41%)
HSVhsv(264, 73%, 65%)
CMYKcmyk(43.6%, 73.3%, 0%, 35.3%)
CIE-LABlab(31.45, 47.72, -56.83)
CIE-LCHlch(31.45, 74.21, 310.02°)
OKLaboklab(43.04% 0.0807 -0.1626)
OKLCHoklch(43.04% 0.182 296.4)
XYZxyz(12.2046, 6.8449, 36.2682)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2CA5 #74A52C
analogous
#2C37A5 #5D2CA5 #992CA5
triadic
#5D2CA5 #A55D2C #2CA55D
tetradic
#5D2CA5 #A52C37 #74A52C #2CA599
square
#5D2CA5 #A52C37 #74A52C #2CA599
split-complementary
#5D2CA5 #A5992C #37A52C
monochromatic
#271244 #421F75 #5D2CA5 #7A42CD #9C72D9

Accessibility & contrast

On white

8.86
#5D2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2CA5
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2CA5#FFFFFF#000000##FFFFFF
##5D2CA51.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#4A4B66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ca5;
/* rgb */ color: rgb(93, 44, 165);
/* oklch */ color: oklch(43.0% 0.182 296.4);
Tailwind
colors: {
  custom: {
    50: '#926ac1',
    500: '#5d2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ca5;
$custom-light: #926ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ca5",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 264.298,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43036,
    "c": 0.18151,
    "h": 296.4
  },
  "luminance": 0.06845
}

Semantic roles & 50–950 ramp

primary
#5D2CA5
secondary
#9EC16C
accent
#E147A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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