#5A1380#5A1380

#5A1380 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.168 H 309.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5A1380
RGBrgb(90, 19, 128)
HSLhsl(279, 74%, 29%)
HSVhsv(279, 85%, 50%)
CMYKcmyk(29.7%, 85.2%, 0%, 49.8%)
CIE-LABlab(24.32, 48.45, -45.65)
CIE-LCHlch(24.32, 66.57, 316.70°)
OKLaboklab(36.97% 0.1074 -0.1297)
OKLCHoklch(36.97% 0.168 309.6)
XYZxyz(8.3448, 4.1981, 20.7886)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1380 #398013
analogous
#241380 #5A1380 #801370
triadic
#5A1380 #805A13 #13805A
tetradic
#5A1380 #802413 #398013 #137080
square
#5A1380 #802413 #398013 #137080
split-complementary
#5A1380 #708013 #138024
monochromatic
#13041B #350B4B #5A1380 #7F1BB5 #A22DE0

Accessibility & contrast

On white

11.42
#5A1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1380
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1380#FFFFFF#000000##FFFFFF
##5A13801.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#54304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1380;
/* rgb */ color: rgb(90, 19, 128);
/* oklch */ color: oklch(37.0% 0.168 309.6);
Tailwind
colors: {
  custom: {
    50: '#8d5ca6',
    500: '#5a1380',
    950: '#000000',
  },
}
SCSS
$custom: #5a1380;
$custom-light: #8d5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1380",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 279.083,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36969,
    "c": 0.16841,
    "h": 309.6
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#5A1380
secondary
#65B539
accent
#F13778
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A1380

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

Preview Lab → · Contrast checker → · Palette generator →

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