#5A1D86#5A1D86

#5A1D86 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.164 H 306.4°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5A1D86
RGBrgb(90, 29, 134)
HSLhsl(275, 64%, 32%)
HSVhsv(275, 78%, 53%)
CMYKcmyk(32.8%, 78.4%, 0%, 47.5%)
CIE-LABlab(26.08, 46.16, -46.56)
CIE-LCHlch(26.08, 65.56, 314.75°)
OKLaboklab(38.36% 0.0975 -0.1324)
OKLCHoklch(38.36% 0.164 306.4)
XYZxyz(8.9579, 4.7737, 22.9991)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D86 #49861D
analogous
#261D86 #5A1D86 #861D7E
triadic
#5A1D86 #865A1D #1D865A
tetradic
#5A1D86 #86261D #49861D #1D7E86
square
#5A1D86 #86261D #49861D #1D7E86
split-complementary
#5A1D86 #7E861D #1D8626
monochromatic
#160721 #381254 #5A1D86 #7C28B8 #9A46D7

Accessibility & contrast

On white

10.74
#5A1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A1D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D86
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D86#FFFFFF#000000##FFFFFF
##5A1D861.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#523751
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5a1d86;
/* rgb */ color: rgb(90, 29, 134);
/* oklch */ color: oklch(38.4% 0.164 306.4);
Tailwind
colors: {
  custom: {
    50: '#8d60aa',
    500: '#5a1d86',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d86;
$custom-light: #8d60aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d86",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 274.857,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38358,
    "c": 0.16446,
    "h": 306.4
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#5A1D86
secondary
#76B946
accent
#E74086
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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