#5D2EA4#5D2EA4

#5D2EA4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.178 H 296.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5D2EA4
RGBrgb(93, 46, 164)
HSLhsl(264, 56%, 41%)
HSVhsv(264, 72%, 64%)
CMYKcmyk(43.3%, 72%, 0%, 35.7%)
CIE-LABlab(31.72, 46.47, -55.79)
CIE-LCHlch(31.72, 72.61, 309.79°)
OKLaboklab(43.2% 0.079 -0.1596)
OKLCHoklch(43.2% 0.178 296.3)
XYZxyz(12.1903, 6.9612, 35.8161)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EA4 #75A42E
analogous
#2E3AA4 #5D2EA4 #982EA4
triadic
#5D2EA4 #A45D2E #2EA45D
tetradic
#5D2EA4 #A42E3A #75A42E #2EA498
square
#5D2EA4 #A42E3A #75A42E #2EA498
split-complementary
#5D2EA4 #A4982E #3AA42E
monochromatic
#271344 #422174 #5D2EA4 #7A45CB #9C74D8

Accessibility & contrast

On white

8.78
#5D2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5D2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EA4
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EA4#FFFFFF#000000##FFFFFF
##5D2EA41.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#4A4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2ea4;
/* rgb */ color: rgb(93, 46, 164);
/* oklch */ color: oklch(43.2% 0.178 296.3);
Tailwind
colors: {
  custom: {
    50: '#916bc0',
    500: '#5d2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ea4;
$custom-light: #916bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ea4",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 263.898,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.432,
    "c": 0.17802,
    "h": 296.3
  },
  "luminance": 0.06961
}

Semantic roles & 50–950 ramp

primary
#5D2EA4
secondary
#9FC06E
accent
#DF48A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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