#5A177B#5A177B

#5A177B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.160 H 311.3°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5A177B
RGBrgb(90, 23, 123)
HSLhsl(280, 68%, 29%)
HSVhsv(280, 81%, 48%)
CMYKcmyk(26.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(24.38, 45.98, -42.39)
CIE-LCHlch(24.38, 62.53, 317.32°)
OKLaboklab(36.88% 0.1055 -0.1201)
OKLCHoklch(36.88% 0.16 311.3)
XYZxyz(8.0973, 4.2167, 19.1224)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A177B #387B17
analogous
#28177B #5A177B #7B176A
triadic
#5A177B #7B5A17 #177B5A
tetradic
#5A177B #7B2817 #387B17 #176A7B
square
#5A177B #7B2817 #387B17 #176A7B
split-complementary
#5A177B #6A7B17 #177B28
monochromatic
#13051A #340D47 #5A177B #8021AF #A233D9

Accessibility & contrast

On white

11.39
#5A177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A177B
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A177B#FFFFFF#000000##FFFFFF
##5A177B1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#563049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a177b;
/* rgb */ color: rgb(90, 23, 123);
/* oklch */ color: oklch(36.9% 0.160 311.3);
Tailwind
colors: {
  custom: {
    50: '#8d5da2',
    500: '#5a177b',
    950: '#000000',
  },
}
SCSS
$custom: #5a177b;
$custom-light: #8d5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a177b",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 280.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36882,
    "c": 0.15987,
    "h": 311.3
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#5A177B
secondary
#64B03E
accent
#EB3C76
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A177B

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

Preview Lab → · Contrast checker → · Palette generator →

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