#5D2EA0#5D2EA0

#5D2EA0 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.173 H 297.4°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5D2EA0
RGBrgb(93, 46, 160)
HSLhsl(265, 55%, 40%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(41.9%, 71.2%, 0%, 37.3%)
CIE-LABlab(31.39, 45.40, -53.90)
CIE-LCHlch(31.39, 70.48, 310.11°)
OKLaboklab(42.86% 0.0797 -0.154)
OKLCHoklch(42.86% 0.173 297.4)
XYZxyz(11.8347, 6.8190, 33.9436)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EA0 #71A02E
analogous
#2E38A0 #5D2EA0 #962EA0
triadic
#5D2EA0 #A05D2E #2EA05D
tetradic
#5D2EA0 #A02E38 #71A02E #2EA096
square
#5D2EA0 #A02E38 #71A02E #2EA096
split-complementary
#5D2EA0 #A0962E #38A02E
monochromatic
#261341 #412070 #5D2EA0 #7A42C9 #9B72D6

Accessibility & contrast

On white

8.88
#5D2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5D2EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EA0
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EA0#FFFFFF#000000##FFFFFF
##5D2EA01.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00489E
Tritanopia (blue-blind)
#4C4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2ea0;
/* rgb */ color: rgb(93, 46, 160);
/* oklch */ color: oklch(42.9% 0.173 297.4);
Tailwind
colors: {
  custom: {
    50: '#916bbd',
    500: '#5d2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ea0;
$custom-light: #916bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ea0",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 264.737,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42865,
    "c": 0.17343,
    "h": 297.4
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#5D2EA0
secondary
#9CBE6C
accent
#DF49A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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