#5D2CA7#5D2CA7

#5D2CA7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.184 H 295.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5D2CA7
RGBrgb(93, 44, 167)
HSLhsl(264, 58%, 41%)
HSVhsv(264, 74%, 65%)
CMYKcmyk(44.3%, 73.7%, 0%, 34.5%)
CIE-LABlab(31.62, 48.25, -57.76)
CIE-LCHlch(31.62, 75.26, 309.88°)
OKLaboklab(43.21% 0.0802 -0.1653)
OKLCHoklch(43.21% 0.184 295.9)
XYZxyz(12.3881, 6.9183, 37.2344)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2CA7 #76A72C
analogous
#2C39A7 #5D2CA7 #9B2CA7
triadic
#5D2CA7 #A75D2C #2CA75D
tetradic
#5D2CA7 #A72C39 #76A72C #2CA79B
square
#5D2CA7 #A72C39 #76A72C #2CA79B
split-complementary
#5D2CA7 #A79B2C #39A72C
monochromatic
#271246 #421F77 #5D2CA7 #7A43CD #9C73DA

Accessibility & contrast

On white

8.81
#5D2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5D2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2CA7
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2CA7#FFFFFF#000000##FFFFFF
##5D2CA71.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#494C67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ca7;
/* rgb */ color: rgb(93, 44, 167);
/* oklch */ color: oklch(43.2% 0.184 295.9);
Tailwind
colors: {
  custom: {
    50: '#926ac2',
    500: '#5d2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ca7;
$custom-light: #926ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ca7",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 263.902,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43208,
    "c": 0.18376,
    "h": 295.9
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#5D2CA7
secondary
#A0C26D
accent
#E246A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5D2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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