#5A1773#5A1773

#5A1773 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.152 H 314.7°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5A1773
RGBrgb(90, 23, 115)
HSLhsl(284, 67%, 27%)
HSVhsv(284, 80%, 45%)
CMYKcmyk(21.7%, 80%, 0%, 54.9%)
CIE-LABlab(23.75, 44.22, -38.29)
CIE-LCHlch(23.75, 58.49, 319.11°)
OKLaboklab(36.25% 0.1071 -0.1081)
OKLCHoklch(36.25% 0.152 314.7)
XYZxyz(7.6168, 4.0245, 16.5919)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1773 #307317
analogous
#2C1773 #5A1773 #73175E
triadic
#5A1773 #735A17 #17735A
tetradic
#5A1773 #732C17 #307317 #175E73
square
#5A1773 #732C17 #307317 #175E73
split-complementary
#5A1773 #5E7317 #17732C
monochromatic
#14051A #320D40 #5A1773 #8221A6 #A82FD5

Accessibility & contrast

On white

11.64
#5A1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5A1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1773
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1773#FFFFFF#000000##FFFFFF
##5A17731.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#123A71
Tritanopia (blue-blind)
#582C44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1773;
/* rgb */ color: rgb(90, 23, 115);
/* oklch */ color: oklch(36.2% 0.152 314.7);
Tailwind
colors: {
  custom: {
    50: '#8c5d9c',
    500: '#5a1773',
    950: '#000000',
  },
}
SCSS
$custom: #5a1773;
$custom-light: #8c5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1773",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 283.696,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36247,
    "c": 0.15215,
    "h": 314.7
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#5A1773
secondary
#5AA93D
accent
#EA3E6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1773

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

Preview Lab → · Contrast checker → · Palette generator →

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