#5A175A#5A175A

#5A175A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.129 H 327.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#5A175A
RGBrgb(90, 23, 90)
HSLhsl(300, 59%, 22%)
HSVhsv(300, 74%, 35%)
CMYKcmyk(0%, 74.4%, 0%, 64.7%)
CIE-LABlab(22.03, 39.13, -24.71)
CIE-LCHlch(22.03, 46.28, 327.74°)
OKLaboklab(34.48% 0.1091 -0.0684)
OKLCHoklch(34.48% 0.129 327.9)
XYZxyz(6.3682, 3.5251, 10.0159)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A175A #175A17
analogous
#39175A #5A175A #5A1739
triadic
#5A175A #5A5A17 #175A5A
tetradic
#5A175A #5A3917 #175A17 #17395A
square
#5A175A #5A3917 #175A17 #17395A
split-complementary
#5A175A #395A17 #175A39
monochromatic
#180618 #290B29 #5A175A #8B238B #BB30BB

Accessibility & contrast

On white

12.32
#5A175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A175A
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A175A#FFFFFF#000000##FFFFFF
##5A175A1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#283858
Tritanopia (blue-blind)
#5D2136
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a175a;
/* rgb */ color: rgb(90, 23, 90);
/* oklch */ color: oklch(34.5% 0.129 327.9);
Tailwind
colors: {
  custom: {
    50: '#8b5b89',
    500: '#5a175a',
    950: '#000000',
  },
}
SCSS
$custom: #5a175a;
$custom-light: #8b5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#5a175a",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.12879,
    "h": 327.9
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#5A175A
secondary
#3C913C
accent
#E24545
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A175A

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

Preview Lab → · Contrast checker → · Palette generator →

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