#5D1A8B#5D1A8B

#5D1A8B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.173 H 306.6°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5D1A8B
RGBrgb(93, 26, 139)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 55%)
CMYKcmyk(33.1%, 81.3%, 0%, 45.5%)
CIE-LABlab(26.53, 49.05, -48.92)
CIE-LCHlch(26.53, 69.28, 315.08°)
OKLaboklab(38.9% 0.1033 -0.1392)
OKLCHoklch(38.9% 0.173 306.6)
XYZxyz(9.5428, 4.9301, 24.8700)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A8B #488B1A
analogous
#241A8B #5D1A8B #8B1A81
triadic
#5D1A8B #8B5D1A #1A8B5D
tetradic
#5D1A8B #8B241A #488B1A #1A818B
square
#5D1A8B #8B241A #488B1A #1A818B
split-complementary
#5D1A8B #818B1A #1A8B24
monochromatic
#180724 #3B1057 #5D1A8B #7F24BF #9E43DC

Accessibility & contrast

On white

10.57
#5D1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A8B
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A8B#FFFFFF#000000##FFFFFF
##5D1A8B1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#553853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d1a8b;
/* rgb */ color: rgb(93, 26, 139);
/* oklch */ color: oklch(38.9% 0.173 306.6);
Tailwind
colors: {
  custom: {
    50: '#9060ae',
    500: '#5d1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a8b;
$custom-light: #9060ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a8b",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 275.575,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.389,
    "c": 0.17336,
    "h": 306.6
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#5D1A8B
secondary
#75BD44
accent
#EB3C84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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