#5A177A#5A177A

#5A177A is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.159 H 311.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5A177A
RGBrgb(90, 23, 122)
HSLhsl(281, 68%, 28%)
HSVhsv(281, 81%, 48%)
CMYKcmyk(26.2%, 81.1%, 0%, 52.2%)
CIE-LABlab(24.30, 45.75, -41.88)
CIE-LCHlch(24.30, 62.03, 317.53°)
OKLaboklab(36.8% 0.1057 -0.1186)
OKLCHoklch(36.8% 0.159 311.7)
XYZxyz(8.0350, 4.1918, 18.7944)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A177A #377A17
analogous
#28177A #5A177A #7A1768
triadic
#5A177A #7A5A17 #177A5A
tetradic
#5A177A #7A2817 #377A17 #17687A
square
#5A177A #7A2817 #377A17 #17687A
split-complementary
#5A177A #687A17 #177A28
monochromatic
#13051A #340D47 #5A177A #8021AD #A333D9

Accessibility & contrast

On white

11.42
#5A177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A177A
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A177A#FFFFFF#000000##FFFFFF
##5A177A1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#023B78
Tritanopia (blue-blind)
#562F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a177a;
/* rgb */ color: rgb(90, 23, 122);
/* oklch */ color: oklch(36.8% 0.159 311.7);
Tailwind
colors: {
  custom: {
    50: '#8d5da1',
    500: '#5a177a',
    950: '#000000',
  },
}
SCSS
$custom: #5a177a;
$custom-light: #8d5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a177a",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 280.606,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36801,
    "c": 0.1589,
    "h": 311.7
  },
  "luminance": 0.04192
}

Semantic roles & 50–950 ramp

primary
#5A177A
secondary
#62AF3E
accent
#EB3D75
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A177A

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

Preview Lab → · Contrast checker → · Palette generator →

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