#5D1A8E#5D1A8E

#5D1A8E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.176 H 305.5°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5D1A8E
RGBrgb(93, 26, 142)
HSLhsl(275, 69%, 33%)
HSVhsv(275, 82%, 56%)
CMYKcmyk(34.5%, 81.7%, 0%, 44.3%)
CIE-LABlab(26.79, 49.74, -50.37)
CIE-LCHlch(26.79, 70.79, 314.64°)
OKLaboklab(39.16% 0.1025 -0.1435)
OKLCHoklch(39.16% 0.176 305.5)
XYZxyz(9.7650, 5.0190, 26.0403)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A8E #4B8E1A
analogous
#231A8E #5D1A8E #8E1A85
triadic
#5D1A8E #8E5D1A #1A8E5D
tetradic
#5D1A8E #8E231A #4B8E1A #1A858E
square
#5D1A8E #8E231A #4B8E1A #1A858E
split-complementary
#5D1A8E #858E1A #1A8E23
monochromatic
#190727 #3B115A #5D1A8E #7F23C2 #9D45DD

Accessibility & contrast

On white

10.48
#5D1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A8E
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A8E#FFFFFF#000000##FFFFFF
##5D1A8E1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#543955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1a8e;
/* rgb */ color: rgb(93, 26, 142);
/* oklch */ color: oklch(39.2% 0.176 305.5);
Tailwind
colors: {
  custom: {
    50: '#9060b0',
    500: '#5d1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a8e;
$custom-light: #9060b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a8e",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 274.655,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39156,
    "c": 0.17632,
    "h": 305.5
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#5D1A8E
secondary
#79BE45
accent
#EC3C86
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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