#5D1A8A#5D1A8A

#5D1A8A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.172 H 306.9°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5D1A8A
RGBrgb(93, 26, 138)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 54%)
CMYKcmyk(32.6%, 81.2%, 0%, 45.9%)
CIE-LABlab(26.45, 48.82, -48.43)
CIE-LCHlch(26.45, 68.77, 315.23°)
OKLaboklab(38.82% 0.1036 -0.1378)
OKLCHoklch(38.82% 0.172 306.9)
XYZxyz(9.4700, 4.9010, 24.4869)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A8A #478A1A
analogous
#251A8A #5D1A8A #8A1A7F
triadic
#5D1A8A #8A5D1A #1A8A5D
tetradic
#5D1A8A #8A251A #478A1A #1A7F8A
square
#5D1A8A #8A251A #478A1A #1A7F8A
split-complementary
#5D1A8A #7F8A1A #1A8A25
monochromatic
#180723 #3A1057 #5D1A8A #8024BD #9E43DC

Accessibility & contrast

On white

10.60
#5D1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5D1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A8A
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A8A#FFFFFF#000000##FFFFFF
##5D1A8A1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#553752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1a8a;
/* rgb */ color: rgb(93, 26, 138);
/* oklch */ color: oklch(38.8% 0.172 306.9);
Tailwind
colors: {
  custom: {
    50: '#905fad',
    500: '#5d1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a8a;
$custom-light: #905fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a8a",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 275.893,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38815,
    "c": 0.17238,
    "h": 306.9
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#5D1A8A
secondary
#74BD43
accent
#EB3D83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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