#5A1167#5A1167

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

Color values

HEX#5A1167
RGBrgb(90, 17, 103)
HSLhsl(291, 72%, 24%)
HSVhsv(291, 83%, 40%)
CMYKcmyk(12.6%, 83.5%, 0%, 59.6%)
CIE-LABlab(22.14, 43.83, -33.11)
CIE-LCHlch(22.14, 54.93, 322.93°)
OKLaboklab(34.83% 0.1144 -0.0929)
OKLCHoklch(34.83% 0.147 320.9)
XYZxyz(6.8648, 3.5542, 13.1538)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1167 #1E6711
analogous
#2F1167 #5A1167 #671149
triadic
#5A1167 #675A11 #11675A
tetradic
#5A1167 #672F11 #1E6711 #114967
square
#5A1167 #672F11 #1E6711 #114967
split-complementary
#5A1167 #496711 #11672F
monochromatic
#17041A #2C0832 #5A1167 #881A9C #B622D0

Accessibility & contrast

On white

12.27
#5A1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1167
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1167#FFFFFF#000000##FFFFFF
##5A11671.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#1C3765
Tritanopia (blue-blind)
#5B233C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1167;
/* rgb */ color: rgb(90, 17, 103);
/* oklch */ color: oklch(34.8% 0.147 320.9);
Tailwind
colors: {
  custom: {
    50: '#8c5993',
    500: '#5a1167',
    950: '#000000',
  },
}
SCSS
$custom: #5a1167;
$custom-light: #8c5993;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1167",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 290.93,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34827,
    "c": 0.14732,
    "h": 320.9
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#5A1167
secondary
#459F35
accent
#EE3955
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1167

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

Preview Lab → · Contrast checker → · Palette generator →

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