#5A1680#5A1680

#5A1680 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.166 H 309.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#5A1680
RGBrgb(90, 22, 128)
HSLhsl(278, 71%, 29%)
HSVhsv(278, 83%, 50%)
CMYKcmyk(29.7%, 82.8%, 0%, 49.8%)
CIE-LABlab(24.66, 47.45, -45.10)
CIE-LCHlch(24.66, 65.46, 316.46°)
OKLaboklab(37.21% 0.1051 -0.1281)
OKLCHoklch(37.21% 0.166 309.4)
XYZxyz(8.3988, 4.3062, 20.8066)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1680 #3C8016
analogous
#251680 #5A1680 #801671
triadic
#5A1680 #805A16 #16805A
tetradic
#5A1680 #802516 #3C8016 #167180
square
#5A1680 #802516 #3C8016 #167180
split-complementary
#5A1680 #718016 #168025
monochromatic
#12041A #350D4C #5A1680 #7F1FB4 #A034DC

Accessibility & contrast

On white

11.28
#5A1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1680
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1680#FFFFFF#000000##FFFFFF
##5A16801.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1680;
/* rgb */ color: rgb(90, 22, 128);
/* oklch */ color: oklch(37.2% 0.166 309.4);
Tailwind
colors: {
  custom: {
    50: '#8d5da6',
    500: '#5a1680',
    950: '#000000',
  },
}
SCSS
$custom: #5a1680;
$custom-light: #8d5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1680",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 278.491,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37208,
    "c": 0.1657,
    "h": 309.4
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#5A1680
secondary
#68B53D
accent
#ED3A7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1680

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

Preview Lab → · Contrast checker → · Palette generator →

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