#5A1A82#5A1A82

#5A1A82 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.164 H 308.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5A1A82
RGBrgb(90, 26, 130)
HSLhsl(277, 67%, 31%)
HSVhsv(277, 80%, 51%)
CMYKcmyk(30.8%, 80%, 0%, 49%)
CIE-LABlab(25.33, 46.43, -45.26)
CIE-LCHlch(25.33, 64.84, 315.73°)
OKLaboklab(37.73% 0.1012 -0.1286)
OKLCHoklch(37.73% 0.164 308.2)
XYZxyz(8.6143, 4.5243, 21.5342)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A82 #42821A
analogous
#261A82 #5A1A82 #821A76
triadic
#5A1A82 #825A1A #1A825A
tetradic
#5A1A82 #82261A #42821A #1A7682
square
#5A1A82 #82261A #42821A #1A7682
split-complementary
#5A1A82 #76821A #1A8226
monochromatic
#13061C #37104F #5A1A82 #7D24B5 #9D3ED8

Accessibility & contrast

On white

11.02
#5A1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A82
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A82#FFFFFF#000000##FFFFFF
##5A1A821.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#54344E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1a82;
/* rgb */ color: rgb(90, 26, 130);
/* oklch */ color: oklch(37.7% 0.164 308.2);
Tailwind
colors: {
  custom: {
    50: '#8d5fa7',
    500: '#5a1a82',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a82;
$custom-light: #8d5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a82",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 276.923,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37732,
    "c": 0.16363,
    "h": 308.2
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#5A1A82
secondary
#6FB642
accent
#EA3E80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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