#5D1A88#5D1A88

#5D1A88 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.170 H 307.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5D1A88
RGBrgb(93, 26, 136)
HSLhsl(277, 68%, 32%)
HSVhsv(277, 81%, 53%)
CMYKcmyk(31.6%, 80.9%, 0%, 46.7%)
CIE-LABlab(26.28, 48.36, -47.46)
CIE-LCHlch(26.28, 67.75, 315.54°)
OKLaboklab(38.65% 0.1041 -0.1349)
OKLCHoklch(38.65% 0.17 307.6)
XYZxyz(9.3266, 4.8437, 23.7314)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A88 #45881A
analogous
#261A88 #5D1A88 #881A7C
triadic
#5D1A88 #885D1A #1A885D
tetradic
#5D1A88 #88261A #45881A #1A7C88
square
#5D1A88 #88261A #45881A #1A7C88
split-complementary
#5D1A88 #7C881A #1A8826
monochromatic
#170621 #3A1055 #5D1A88 #8024BB #9F42DB

Accessibility & contrast

On white

10.67
#5D1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A88
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A88#FFFFFF#000000##FFFFFF
##5D1A881.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#563651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1a88;
/* rgb */ color: rgb(93, 26, 136);
/* oklch */ color: oklch(38.6% 0.170 307.6);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5d1a88',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a88;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a88",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 276.545,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38647,
    "c": 0.17041,
    "h": 307.6
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#5D1A88
secondary
#72BB43
accent
#EB3D81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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