#5A174F#5A174F

#5A174F is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.119 H 335.2°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#5A174F
RGBrgb(90, 23, 79)
HSLhsl(310, 59%, 22%)
HSVhsv(310, 74%, 35%)
CMYKcmyk(0%, 74.4%, 12.2%, 64.7%)
CIE-LABlab(21.40, 37.15, -18.33)
CIE-LCHlch(21.40, 41.43, 333.74°)
OKLaboklab(33.81% 0.1084 -0.05)
OKLCHoklch(33.81% 0.119 335.2)
XYZxyz(5.9342, 3.3515, 7.7300)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A174F #175A22
analogous
#44175A #5A174F #5A172E
triadic
#5A174F #4F5A17 #174F5A
tetradic
#5A174F #5A4417 #175A22 #172E5A
square
#5A174F #5A4417 #175A22 #172E5A
split-complementary
#5A174F #2E5A17 #175A44
monochromatic
#180615 #290B24 #5A174F #8B237A #BB30A5

Accessibility & contrast

On white

12.57
#5A174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A174F
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A174F#FFFFFF#000000##FFFFFF
##5A174F1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D51
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#5F1C31
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a174f;
/* rgb */ color: rgb(90, 23, 79);
/* oklch */ color: oklch(33.8% 0.119 335.2);
Tailwind
colors: {
  custom: {
    50: '#8b5b80',
    500: '#5a174f',
    950: '#000000',
  },
}
SCSS
$custom: #5a174f;
$custom-light: #8b5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#5a174f",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 309.851,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33812,
    "c": 0.11934,
    "h": 335.2
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#5A174F
secondary
#3C914A
accent
#E25F45
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A174F

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

Preview Lab → · Contrast checker → · Palette generator →

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