#5A175C#5A175C

#5A175C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.131 H 326.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5A175C
RGBrgb(90, 23, 92)
HSLhsl(298, 60%, 23%)
HSVhsv(298, 75%, 36%)
CMYKcmyk(2.2%, 75%, 0%, 63.9%)
CIE-LABlab(22.16, 39.51, -25.84)
CIE-LCHlch(22.16, 47.21, 326.82°)
OKLaboklab(34.6% 0.1092 -0.0717)
OKLCHoklch(34.6% 0.131 326.7)
XYZxyz(6.4545, 3.5596, 10.4702)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A175C #195C17
analogous
#38175C #5A175C #5C173B
triadic
#5A175C #5C5A17 #175C5A
tetradic
#5A175C #5C3817 #195C17 #173B5C
square
#5A175C #5C3817 #195C17 #173B5C
split-complementary
#5A175C #3B5C17 #175C38
monochromatic
#180618 #2A0B2B #5A175C #8A238D #BA2FBE

Accessibility & contrast

On white

12.27
#5A175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A175C
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A175C#FFFFFF#000000##FFFFFF
##5A175C1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305E
Deuteranopia (green-blind)
#27385A
Tritanopia (blue-blind)
#5D2238
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a175c;
/* rgb */ color: rgb(90, 23, 92);
/* oklch */ color: oklch(34.6% 0.131 326.7);
Tailwind
colors: {
  custom: {
    50: '#8b5b8a',
    500: '#5a175c',
    950: '#000000',
  },
}
SCSS
$custom: #5a175c;
$custom-light: #8b5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a175c",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 298.261,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34604,
    "c": 0.13059,
    "h": 326.7
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#5A175C
secondary
#3E933C
accent
#E34549
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A175C

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

Preview Lab → · Contrast checker → · Palette generator →

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