#5A1A87#5A1A87

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

Color values

HEX#5A1A87
RGBrgb(90, 26, 135)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 53%)
CMYKcmyk(33.3%, 80.7%, 0%, 47.1%)
CIE-LABlab(25.75, 47.59, -47.72)
CIE-LCHlch(25.75, 67.40, 314.92°)
OKLaboklab(38.15% 0.0999 -0.1358)
OKLCHoklch(38.15% 0.169 306.3)
XYZxyz(8.9581, 4.6618, 23.3449)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A87 #47871A
analogous
#231A87 #5A1A87 #871A7E
triadic
#5A1A87 #875A1A #1A875A
tetradic
#5A1A87 #87231A #47871A #1A7E87
square
#5A1A87 #87231A #47871A #1A7E87
split-complementary
#5A1A87 #7E871A #1A8723
monochromatic
#160620 #381054 #5A1A87 #7C24BA #9B41DA

Accessibility & contrast

On white

10.87
#5A1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5A1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A87
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A87#FFFFFF#000000##FFFFFF
##5A1A871.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#523651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1a87;
/* rgb */ color: rgb(90, 26, 135);
/* oklch */ color: oklch(38.2% 0.169 306.3);
Tailwind
colors: {
  custom: {
    50: '#8e5fab',
    500: '#5a1a87',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a87;
$custom-light: #8e5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a87",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 275.229,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38152,
    "c": 0.16864,
    "h": 306.3
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#5A1A87
secondary
#74BA42
accent
#EB3D85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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