#5A1173#5A1173

#5A1173 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.158 H 315.2°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#5A1173
RGBrgb(90, 17, 115)
HSLhsl(285, 74%, 26%)
HSVhsv(285, 85%, 45%)
CMYKcmyk(21.7%, 85.2%, 0%, 54.9%)
CIE-LABlab(23.04, 46.28, -39.44)
CIE-LCHlch(23.04, 60.80, 319.56°)
OKLaboklab(35.75% 0.1122 -0.1114)
OKLCHoklch(35.75% 0.158 315.2)
XYZxyz(7.5109, 3.8127, 16.5566)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1173 #2A7311
analogous
#291173 #5A1173 #73115B
triadic
#5A1173 #735A11 #11735A
tetradic
#5A1173 #732911 #2A7311 #115B73
square
#5A1173 #732911 #2A7311 #115B73
split-complementary
#5A1173 #5B7311 #117329
monochromatic
#15041B #30093E #5A1173 #8419A8 #AD21DE

Accessibility & contrast

On white

11.92
#5A1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5A1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1173
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1173#FFFFFF#000000##FFFFFF
##5A11731.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#0B3971
Tritanopia (blue-blind)
#582943
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1173;
/* rgb */ color: rgb(90, 17, 115);
/* oklch */ color: oklch(35.7% 0.158 315.2);
Tailwind
colors: {
  custom: {
    50: '#8d5a9c',
    500: '#5a1173',
    950: '#000000',
  },
}
SCSS
$custom: #5a1173;
$custom-light: #8d5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1173",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 284.694,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35748,
    "c": 0.15814,
    "h": 315.2
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#5A1173
secondary
#53AA36
accent
#F13766
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1173

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

Preview Lab → · Contrast checker → · Palette generator →

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