#5D2AB1#5D2AB1

#5D2AB1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.197 H 293.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5D2AB1
RGBrgb(93, 42, 177)
HSLhsl(263, 62%, 43%)
HSVhsv(263, 76%, 69%)
CMYKcmyk(47.5%, 76.3%, 0%, 30.6%)
CIE-LABlab(32.16, 51.83, -62.86)
CIE-LCHlch(32.16, 81.47, 309.51°)
OKLaboklab(43.86% 0.0795 -0.1803)
OKLCHoklch(43.86% 0.197 293.8)
XYZxyz(13.2758, 7.1570, 42.2684)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2AB1 #7EB12A
analogous
#2A3AB1 #5D2AB1 #A12AB1
triadic
#5D2AB1 #B15D2A #2AB15D
tetradic
#5D2AB1 #B12A3A #7EB12A #2AB1A1
square
#5D2AB1 #B12A3A #7EB12A #2AB1A1
split-complementary
#5D2AB1 #B1A12A #3AB12A
monochromatic
#29134E #431E80 #5D2AB1 #7B45D3 #9E77DF

Accessibility & contrast

On white

8.64
#5D2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5D2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2AB1
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2AB1#FFFFFF#000000##FFFFFF
##5D2AB11.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#444F6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d2ab1;
/* rgb */ color: rgb(93, 42, 177);
/* oklch */ color: oklch(43.9% 0.197 293.8);
Tailwind
colors: {
  custom: {
    50: '#9369c9',
    500: '#5d2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ab1;
$custom-light: #9369c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ab1",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 262.667,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43858,
    "c": 0.19704,
    "h": 293.8
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

primary
#5D2AB1
secondary
#A6C670
accent
#E543A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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