#5A1160#5A1160

#5A1160 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.141 H 324.6°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#5A1160
RGBrgb(90, 17, 96)
HSLhsl(295, 70%, 22%)
HSVhsv(295, 82%, 38%)
CMYKcmyk(6.2%, 82.3%, 0%, 62.4%)
CIE-LABlab(21.65, 42.47, -29.29)
CIE-LCHlch(21.65, 51.60, 325.41°)
OKLaboklab(34.33% 0.1151 -0.0817)
OKLCHoklch(34.33% 0.141 324.6)
XYZxyz(6.5281, 3.4195, 11.3803)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1160 #176011
analogous
#331160 #5A1160 #60113F
triadic
#5A1160 #605A11 #11605A
tetradic
#5A1160 #603311 #176011 #113F60
square
#5A1160 #603311 #176011 #113F60
split-complementary
#5A1160 #3F6011 #116033
monochromatic
#18051A #29082C #5A1160 #8B1A94 #BB23C8

Accessibility & contrast

On white

12.47
#5A1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1160
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1160#FFFFFF#000000##FFFFFF
##5A11601.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E62
Deuteranopia (green-blind)
#22375E
Tritanopia (blue-blind)
#5C2038
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1160;
/* rgb */ color: rgb(90, 17, 96);
/* oklch */ color: oklch(34.3% 0.141 324.6);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5a1160',
    950: '#000000',
  },
}
SCSS
$custom: #5a1160;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1160",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 295.443,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34326,
    "c": 0.14116,
    "h": 324.6
  },
  "luminance": 0.03419
}

Semantic roles & 50–950 ramp

primary
#5A1160
secondary
#3C9934
accent
#ED3B49
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1160

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

Preview Lab → · Contrast checker → · Palette generator →

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