#5D2DA1#5D2DA1

#5D2DA1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.176 H 297.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5D2DA1
RGBrgb(93, 45, 161)
HSLhsl(265, 56%, 40%)
HSVhsv(265, 72%, 63%)
CMYKcmyk(42.2%, 72%, 0%, 36.9%)
CIE-LABlab(31.29, 46.17, -54.67)
CIE-LCHlch(31.29, 71.56, 310.18°)
OKLaboklab(42.82% 0.0805 -0.1563)
OKLCHoklch(42.82% 0.176 297.3)
XYZxyz(11.8839, 6.7769, 34.3933)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2DA1 #71A12D
analogous
#2D37A1 #5D2DA1 #972DA1
triadic
#5D2DA1 #A15D2D #2DA15D
tetradic
#5D2DA1 #A12D37 #71A12D #2DA197
square
#5D2DA1 #A12D37 #71A12D #2DA197
split-complementary
#5D2DA1 #A1972D #37A12D
monochromatic
#261241 #412071 #5D2DA1 #7A41CA #9B71D7

Accessibility & contrast

On white

8.92
#5D2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D2DA1
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2DA1#FFFFFF#000000##FFFFFF
##5D2DA11.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d2da1;
/* rgb */ color: rgb(93, 45, 161);
/* oklch */ color: oklch(42.8% 0.176 297.3);
Tailwind
colors: {
  custom: {
    50: '#916abe',
    500: '#5d2da1',
    950: '#000000',
  },
}
SCSS
$custom: #5d2da1;
$custom-light: #916abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2da1",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 264.828,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42821,
    "c": 0.17579,
    "h": 297.3
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#5D2DA1
secondary
#9CBF6B
accent
#E048A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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