#5D1A82#5D1A82

#5D1A82 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.165 H 309.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5D1A82
RGBrgb(93, 26, 130)
HSLhsl(279, 67%, 31%)
HSVhsv(279, 80%, 51%)
CMYKcmyk(28.5%, 80%, 0%, 49%)
CIE-LABlab(25.80, 47.00, -44.49)
CIE-LCHlch(25.80, 64.71, 316.57°)
OKLaboklab(38.15% 0.1055 -0.1262)
OKLCHoklch(38.15% 0.165 309.9)
XYZxyz(8.9121, 4.6778, 21.5482)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A82 #3F821A
analogous
#291A82 #5D1A82 #821A73
triadic
#5D1A82 #825D1A #1A825D
tetradic
#5D1A82 #82291A #3F821A #1A7382
square
#5D1A82 #82291A #3F821A #1A7382
split-complementary
#5D1A82 #73821A #1A8229
monochromatic
#14061C #39104F #5D1A82 #8124B5 #A13ED8

Accessibility & contrast

On white

10.85
#5D1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A82
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A82#FFFFFF#000000##FFFFFF
##5D1A821.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#58344E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1a82;
/* rgb */ color: rgb(93, 26, 130);
/* oklch */ color: oklch(38.2% 0.165 309.9);
Tailwind
colors: {
  custom: {
    50: '#8f5fa7',
    500: '#5d1a82',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a82;
$custom-light: #8f5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a82",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 278.654,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38152,
    "c": 0.16451,
    "h": 309.9
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#5D1A82
secondary
#6BB642
accent
#EA3E7B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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