#5A1676#5A1676

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

Color values

HEX#5A1676
RGBrgb(90, 22, 118)
HSLhsl(283, 69%, 27%)
HSVhsv(283, 81%, 46%)
CMYKcmyk(23.7%, 81.4%, 0%, 53.7%)
CIE-LABlab(23.85, 45.24, -40.04)
CIE-LCHlch(23.85, 60.42, 318.49°)
OKLaboklab(36.39% 0.1074 -0.1132)
OKLCHoklch(36.39% 0.156 313.5)
XYZxyz(7.7728, 4.0557, 17.5094)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1676 #327616
analogous
#2A1676 #5A1676 #761662
triadic
#5A1676 #765A16 #16765A
tetradic
#5A1676 #762A16 #327616 #166276
square
#5A1676 #762A16 #327616 #166276
split-complementary
#5A1676 #627616 #16762A
monochromatic
#14051A #330C42 #5A1676 #8120AA #A72ED8

Accessibility & contrast

On white

11.60
#5A1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5A1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1676
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1676#FFFFFF#000000##FFFFFF
##5A16761.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1676;
/* rgb */ color: rgb(90, 22, 118);
/* oklch */ color: oklch(36.4% 0.156 313.5);
Tailwind
colors: {
  custom: {
    50: '#8c5c9e',
    500: '#5a1676',
    950: '#000000',
  },
}
SCSS
$custom: #5a1676;
$custom-light: #8c5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1676",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 282.5,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36392,
    "c": 0.15608,
    "h": 313.5
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#5A1676
secondary
#5DAC3C
accent
#EB3C6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1676

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

Preview Lab → · Contrast checker → · Palette generator →

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