#5A175F#5A175F

#5A175F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.133 H 324.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#5A175F
RGBrgb(90, 23, 95)
HSLhsl(296, 61%, 23%)
HSVhsv(296, 76%, 37%)
CMYKcmyk(5.3%, 75.8%, 0%, 62.7%)
CIE-LABlab(22.35, 40.09, -27.52)
CIE-LCHlch(22.35, 48.63, 325.53°)
OKLaboklab(34.8% 0.1091 -0.0766)
OKLCHoklch(34.8% 0.133 324.9)
XYZxyz(6.5882, 3.6131, 11.1746)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A175F #1C5F17
analogous
#36175F #5A175F #5F1740
triadic
#5A175F #5F5A17 #175F5A
tetradic
#5A175F #5F3617 #1C5F17 #17405F
square
#5A175F #5F3617 #1C5F17 #17405F
split-complementary
#5A175F #405F17 #175F36
monochromatic
#170619 #2B0B2E #5A175F #892390 #B72FC2

Accessibility & contrast

On white

12.19
#5A175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A175F
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A175F#FFFFFF#000000##FFFFFF
##5A175F1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043061
Deuteranopia (green-blind)
#25385D
Tritanopia (blue-blind)
#5C2339
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a175f;
/* rgb */ color: rgb(90, 23, 95);
/* oklch */ color: oklch(34.8% 0.133 324.9);
Tailwind
colors: {
  custom: {
    50: '#8b5c8d',
    500: '#5a175f',
    950: '#000000',
  },
}
SCSS
$custom: #5a175f;
$custom-light: #8b5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a175f",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 295.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34802,
    "c": 0.13331,
    "h": 324.9
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#5A175F
secondary
#42963C
accent
#E4444F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A175F

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

Preview Lab → · Contrast checker → · Palette generator →

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