#5A1776#5A1776

#5A1776 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.155 H 313.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#5A1776
RGBrgb(90, 23, 118)
HSLhsl(282, 67%, 28%)
HSVhsv(282, 81%, 46%)
CMYKcmyk(23.7%, 80.5%, 0%, 53.7%)
CIE-LABlab(23.98, 44.87, -39.84)
CIE-LCHlch(23.98, 60.01, 318.40°)
OKLaboklab(36.48% 0.1065 -0.1126)
OKLCHoklch(36.48% 0.155 313.4)
XYZxyz(7.7923, 4.0947, 17.5159)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1776 #337617
analogous
#2B1776 #5A1776 #761762
triadic
#5A1776 #765A17 #17765A
tetradic
#5A1776 #762B17 #337617 #176276
square
#5A1776 #762B17 #337617 #176276
split-complementary
#5A1776 #627617 #17762B
monochromatic
#14051A #330D43 #5A1776 #8121A9 #A631D7

Accessibility & contrast

On white

11.55
#5A1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1776
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1776#FFFFFF#000000##FFFFFF
##5A17761.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#0C3A74
Tritanopia (blue-blind)
#572D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1776;
/* rgb */ color: rgb(90, 23, 118);
/* oklch */ color: oklch(36.5% 0.155 313.4);
Tailwind
colors: {
  custom: {
    50: '#8c5d9e',
    500: '#5a1776',
    950: '#000000',
  },
}
SCSS
$custom: #5a1776;
$custom-light: #8c5d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1776",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 282.316,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36482,
    "c": 0.15503,
    "h": 313.4
  },
  "luminance": 0.04094
}

Semantic roles & 50–950 ramp

primary
#5A1776
secondary
#5EAB3E
accent
#EA3E70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5A1776

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

Preview Lab → · Contrast checker → · Palette generator →

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