#5A1582#5A1582

#5A1582 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.169 H 308.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5A1582
RGBrgb(90, 21, 130)
HSLhsl(278, 72%, 30%)
HSVhsv(278, 84%, 51%)
CMYKcmyk(30.8%, 83.8%, 0%, 49%)
CIE-LABlab(24.71, 48.24, -46.28)
CIE-LCHlch(24.71, 66.85, 316.19°)
OKLaboklab(37.29% 0.1054 -0.1315)
OKLCHoklch(37.29% 0.169 308.7)
XYZxyz(8.5130, 4.3218, 21.5005)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1582 #3D8215
analogous
#241582 #5A1582 #821573
triadic
#5A1582 #825A15 #15825A
tetradic
#5A1582 #822415 #3D8215 #157382
square
#5A1582 #822415 #3D8215 #157382
split-complementary
#5A1582 #738215 #158224
monochromatic
#12041A #360C4D #5A1582 #7E1EB7 #9F33DE

Accessibility & contrast

On white

11.26
#5A1582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5A1582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1582
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1582#FFFFFF#000000##FFFFFF
##5A15821.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#54324D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1582;
/* rgb */ color: rgb(90, 21, 130);
/* oklch */ color: oklch(37.3% 0.169 308.7);
Tailwind
colors: {
  custom: {
    50: '#8d5da7',
    500: '#5a1582',
    950: '#000000',
  },
}
SCSS
$custom: #5a1582;
$custom-light: #8d5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1582",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 277.982,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37294,
    "c": 0.16854,
    "h": 308.7
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#5A1582
secondary
#69B73C
accent
#EF397C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1582

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

Preview Lab → · Contrast checker → · Palette generator →

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