#5A1777#5A1777

#5A1777 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.156 H 313.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#5A1777
RGBrgb(90, 23, 119)
HSLhsl(282, 68%, 28%)
HSVhsv(282, 81%, 47%)
CMYKcmyk(24.4%, 80.7%, 0%, 53.3%)
CIE-LABlab(24.06, 45.09, -40.35)
CIE-LCHlch(24.06, 60.51, 318.18°)
OKLaboklab(36.56% 0.1063 -0.1141)
OKLCHoklch(36.56% 0.156 313)
XYZxyz(7.8520, 4.1186, 17.8305)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1777 #347717
analogous
#2A1777 #5A1777 #771764
triadic
#5A1777 #775A17 #17775A
tetradic
#5A1777 #772A17 #347717 #176477
square
#5A1777 #772A17 #347717 #176477
split-complementary
#5A1777 #647717 #17772A
monochromatic
#13051A #330D44 #5A1777 #8121AA #A531D7

Accessibility & contrast

On white

11.52
#5A1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1777
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1777#FFFFFF#000000##FFFFFF
##5A17771.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#093B75
Tritanopia (blue-blind)
#572E47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1777;
/* rgb */ color: rgb(90, 23, 119);
/* oklch */ color: oklch(36.6% 0.156 313.0);
Tailwind
colors: {
  custom: {
    50: '#8c5d9f',
    500: '#5a1777',
    950: '#000000',
  },
}
SCSS
$custom: #5a1777;
$custom-light: #8c5d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1777",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 281.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.15599,
    "h": 313
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#5A1777
secondary
#5FAC3E
accent
#EA3D72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5A1777

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

Preview Lab → · Contrast checker → · Palette generator →

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