#5A1677#5A1677

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

Color values

HEX#5A1677
RGBrgb(90, 22, 119)
HSLhsl(282, 69%, 28%)
HSVhsv(282, 82%, 47%)
CMYKcmyk(24.4%, 81.5%, 0%, 53.3%)
CIE-LABlab(23.93, 45.46, -40.56)
CIE-LCHlch(23.93, 60.92, 318.26°)
OKLaboklab(36.47% 0.1072 -0.1147)
OKLCHoklch(36.47% 0.157 313.1)
XYZxyz(7.8325, 4.0796, 17.8240)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1677 #337716
analogous
#2A1677 #5A1677 #771663
triadic
#5A1677 #775A16 #16775A
tetradic
#5A1677 #772A16 #337716 #166377
square
#5A1677 #772A16 #337716 #166377
split-complementary
#5A1677 #637716 #16772A
monochromatic
#14051A #330C43 #5A1677 #8120AB #A62FD9

Accessibility & contrast

On white

11.57
#5A1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1677
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1677#FFFFFF#000000##FFFFFF
##5A16771.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#083A75
Tritanopia (blue-blind)
#572D46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1677;
/* rgb */ color: rgb(90, 22, 119);
/* oklch */ color: oklch(36.5% 0.157 313.1);
Tailwind
colors: {
  custom: {
    50: '#8d5c9f',
    500: '#5a1677',
    950: '#000000',
  },
}
SCSS
$custom: #5a1677;
$custom-light: #8d5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1677",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 282.062,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36472,
    "c": 0.15705,
    "h": 313.1
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#5A1677
secondary
#5EAC3C
accent
#EC3C71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1677

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

Preview Lab → · Contrast checker → · Palette generator →

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