#5A1880#5A1880

#5A1880 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 309.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#5A1880
RGBrgb(90, 24, 128)
HSLhsl(278, 68%, 30%)
HSVhsv(278, 81%, 50%)
CMYKcmyk(29.7%, 81.3%, 0%, 49.8%)
CIE-LABlab(24.91, 46.73, -44.69)
CIE-LCHlch(24.91, 64.66, 316.28°)
OKLaboklab(37.38% 0.1034 -0.1269)
OKLCHoklch(37.38% 0.164 309.2)
XYZxyz(8.4386, 4.3856, 20.8199)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1880 #3E8018
analogous
#261880 #5A1880 #801872
triadic
#5A1880 #805A18 #18805A
tetradic
#5A1880 #802618 #3E8018 #187280
square
#5A1880 #802618 #3E8018 #187280
split-complementary
#5A1880 #728018 #188026
monochromatic
#12051A #360E4C #5A1880 #7E22B4 #9F39DA

Accessibility & contrast

On white

11.19
#5A1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5A1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1880
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1880#FFFFFF#000000##FFFFFF
##5A18801.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1880;
/* rgb */ color: rgb(90, 24, 128);
/* oklch */ color: oklch(37.4% 0.164 309.2);
Tailwind
colors: {
  custom: {
    50: '#8d5ea6',
    500: '#5a1880',
    950: '#000000',
  },
}
SCSS
$custom: #5a1880;
$custom-light: #8d5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1880",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 278.077,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37382,
    "c": 0.16372,
    "h": 309.2
  },
  "luminance": 0.04385
}

Semantic roles & 50–950 ramp

primary
#5A1880
secondary
#6AB440
accent
#EB3D7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1880

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

Preview Lab → · Contrast checker → · Palette generator →

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