#5A175D#5A175D

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

Color values

HEX#5A175D
RGBrgb(90, 23, 93)
HSLhsl(297, 60%, 23%)
HSVhsv(297, 75%, 36%)
CMYKcmyk(3.2%, 75.3%, 0%, 63.5%)
CIE-LABlab(22.22, 39.71, -26.40)
CIE-LCHlch(22.22, 47.68, 326.38°)
OKLaboklab(34.67% 0.1092 -0.0733)
OKLCHoklch(34.67% 0.131 326.1)
XYZxyz(6.4985, 3.5772, 10.7020)
Luminance0.0358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A175D #1A5D17
analogous
#37175D #5A175D #5D173D
triadic
#5A175D #5D5A17 #175D5A
tetradic
#5A175D #5D3717 #1A5D17 #173D5D
square
#5A175D #5D3717 #1A5D17 #173D5D
split-complementary
#5A175D #3D5D17 #175D37
monochromatic
#180619 #2B0B2C #5A175D #89238E #B92FBF

Accessibility & contrast

On white

12.24
#5A175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A175D
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A175D#FFFFFF#000000##FFFFFF
##5A175D1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07305F
Deuteranopia (green-blind)
#27385B
Tritanopia (blue-blind)
#5C2238
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a175d;
/* rgb */ color: rgb(90, 23, 93);
/* oklch */ color: oklch(34.7% 0.131 326.1);
Tailwind
colors: {
  custom: {
    50: '#8b5b8b',
    500: '#5a175d',
    950: '#000000',
  },
}
SCSS
$custom: #5a175d;
$custom-light: #8b5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a175d",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 297.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3467,
    "c": 0.13149,
    "h": 326.1
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#5A175D
secondary
#40943C
accent
#E3444B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A175D

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

Preview Lab → · Contrast checker → · Palette generator →

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