#5A175B#5A175B

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

Color values

HEX#5A175B
RGBrgb(90, 23, 91)
HSLhsl(299, 60%, 22%)
HSVhsv(299, 75%, 36%)
CMYKcmyk(1.1%, 74.7%, 0%, 64.3%)
CIE-LABlab(22.10, 39.32, -25.27)
CIE-LCHlch(22.10, 46.75, 327.27°)
OKLaboklab(34.54% 0.1092 -0.07)
OKLCHoklch(34.54% 0.13 327.3)
XYZxyz(6.4111, 3.5422, 10.2415)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A175B #185B17
analogous
#38175B #5A175B #5B173A
triadic
#5A175B #5B5A17 #175B5A
tetradic
#5A175B #5B3817 #185B17 #173A5B
square
#5A175B #5B3817 #185B17 #173A5B
split-complementary
#5A175B #3A5B17 #175B38
monochromatic
#180618 #2A0B2A #5A175B #8A238C #BB30BD

Accessibility & contrast

On white

12.29
#5A175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A175B
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A175B#FFFFFF#000000##FFFFFF
##5A175B1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2F5D
Deuteranopia (green-blind)
#283859
Tritanopia (blue-blind)
#5D2137
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a175b;
/* rgb */ color: rgb(90, 23, 91);
/* oklch */ color: oklch(34.5% 0.130 327.3);
Tailwind
colors: {
  custom: {
    50: '#8b5b8a',
    500: '#5a175b',
    950: '#000000',
  },
}
SCSS
$custom: #5a175b;
$custom-light: #8b5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a175b",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 299.118,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3454,
    "c": 0.12969,
    "h": 327.3
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#5A175B
secondary
#3D923C
accent
#E34547
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A175B

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

Preview Lab → · Contrast checker → · Palette generator →

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