#5A1780#5A1780

#5A1780 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.165 H 309.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#5A1780
RGBrgb(90, 23, 128)
HSLhsl(278, 70%, 30%)
HSVhsv(278, 82%, 50%)
CMYKcmyk(29.7%, 82%, 0%, 49.8%)
CIE-LABlab(24.78, 47.10, -44.90)
CIE-LCHlch(24.78, 65.07, 316.37°)
OKLaboklab(37.29% 0.1043 -0.1275)
OKLCHoklch(37.29% 0.165 309.3)
XYZxyz(8.4183, 4.3451, 20.8131)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1780 #3D8017
analogous
#261780 #5A1780 #801771
triadic
#5A1780 #805A17 #17805A
tetradic
#5A1780 #802617 #3D8017 #177180
square
#5A1780 #802617 #3D8017 #177180
split-complementary
#5A1780 #718017 #178026
monochromatic
#12051A #360E4C #5A1780 #7E20B4 #9F36DB

Accessibility & contrast

On white

11.24
#5A1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5A1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1780
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1780#FFFFFF#000000##FFFFFF
##5A17801.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1780;
/* rgb */ color: rgb(90, 23, 128);
/* oklch */ color: oklch(37.3% 0.165 309.3);
Tailwind
colors: {
  custom: {
    50: '#8d5da6',
    500: '#5a1780',
    950: '#000000',
  },
}
SCSS
$custom: #5a1780;
$custom-light: #8d5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1780",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 278.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37293,
    "c": 0.16472,
    "h": 309.3
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#5A1780
secondary
#69B43E
accent
#EC3B7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A1780

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

Preview Lab → · Contrast checker → · Palette generator →

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