#5A1174#5A1174

#5A1174 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.8% C 0.159 H 314.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#5A1174
RGBrgb(90, 17, 116)
HSLhsl(284, 74%, 26%)
HSVhsv(284, 85%, 45%)
CMYKcmyk(22.4%, 85.3%, 0%, 54.5%)
CIE-LABlab(23.12, 46.49, -39.95)
CIE-LCHlch(23.12, 61.30, 319.32°)
OKLaboklab(35.83% 0.112 -0.1129)
OKLCHoklch(35.83% 0.159 314.8)
XYZxyz(7.5688, 3.8358, 16.8613)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1174 #2B7411
analogous
#281174 #5A1174 #74115C
triadic
#5A1174 #745A11 #11745A
tetradic
#5A1174 #742811 #2B7411 #115C74
square
#5A1174 #742811 #2B7411 #115C74
split-complementary
#5A1174 #5C7411 #117428
monochromatic
#15041B #31093F #5A1174 #8319A9 #AD21DE

Accessibility & contrast

On white

11.88
#5A1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1174
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1174#FFFFFF#000000##FFFFFF
##5A11741.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#083972
Tritanopia (blue-blind)
#582A44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1174;
/* rgb */ color: rgb(90, 17, 116);
/* oklch */ color: oklch(35.8% 0.159 314.8);
Tailwind
colors: {
  custom: {
    50: '#8d5a9d',
    500: '#5a1174',
    950: '#000000',
  },
}
SCSS
$custom: #5a1174;
$custom-light: #8d5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1174",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 284.242,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35828,
    "c": 0.15904,
    "h": 314.8
  },
  "luminance": 0.03836
}

Semantic roles & 50–950 ramp

primary
#5A1174
secondary
#55AB36
accent
#F13768
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1174

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

Preview Lab → · Contrast checker → · Palette generator →

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