#5A1980#5A1980

#5A1980 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.163 H 309.1°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5A1980
RGBrgb(90, 25, 128)
HSLhsl(278, 67%, 30%)
HSVhsv(278, 80%, 50%)
CMYKcmyk(29.7%, 80.5%, 0%, 49.8%)
CIE-LABlab(25.04, 46.36, -44.48)
CIE-LCHlch(25.04, 64.24, 316.18°)
OKLaboklab(37.47% 0.1026 -0.1263)
OKLCHoklch(37.47% 0.163 309.1)
XYZxyz(8.4596, 4.4276, 20.8269)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1980 #3F8019
analogous
#271980 #5A1980 #801972
triadic
#5A1980 #805A19 #19805A
tetradic
#5A1980 #802719 #3F8019 #197280
square
#5A1980 #802719 #3F8019 #197280
split-complementary
#5A1980 #728019 #198027
monochromatic
#12051A #360F4D #5A1980 #7E23B3 #9E3BD9

Accessibility & contrast

On white

11.14
#5A1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1980
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1980#FFFFFF#000000##FFFFFF
##5A19801.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#54334C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1980;
/* rgb */ color: rgb(90, 25, 128);
/* oklch */ color: oklch(37.5% 0.163 309.1);
Tailwind
colors: {
  custom: {
    50: '#8d5ea6',
    500: '#5a1980',
    950: '#000000',
  },
}
SCSS
$custom: #5a1980;
$custom-light: #8d5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1980",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 277.864,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.37473,
    "c": 0.1627,
    "h": 309.1
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#5A1980
secondary
#6BB441
accent
#EA3E7D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1980

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

Preview Lab → · Contrast checker → · Palette generator →

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