#5A1164#5A1164

#5A1164 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.145 H 322.5°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#5A1164
RGBrgb(90, 17, 100)
HSLhsl(293, 71%, 23%)
HSVhsv(293, 83%, 39%)
CMYKcmyk(10%, 83%, 0%, 60.8%)
CIE-LABlab(21.93, 43.24, -31.49)
CIE-LCHlch(21.93, 53.49, 323.94°)
OKLaboklab(34.61% 0.1147 -0.0881)
OKLCHoklch(34.61% 0.145 322.5)
XYZxyz(6.7169, 3.4951, 12.3749)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1164 #1B6411
analogous
#301164 #5A1164 #641144
triadic
#5A1164 #645A11 #11645A
tetradic
#5A1164 #643011 #1B6411 #114464
square
#5A1164 #643011 #1B6411 #114464
split-complementary
#5A1164 #446411 #116430
monochromatic
#18041A #2B0830 #5A1164 #891A98 #B823CD

Accessibility & contrast

On white

12.36
#5A1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A1164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1164
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1164#FFFFFF#000000##FFFFFF
##5A11641.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#1E3762
Tritanopia (blue-blind)
#5B223B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1164;
/* rgb */ color: rgb(90, 17, 100);
/* oklch */ color: oklch(34.6% 0.145 322.5);
Tailwind
colors: {
  custom: {
    50: '#8c5991',
    500: '#5a1164',
    950: '#000000',
  },
}
SCSS
$custom: #5a1164;
$custom-light: #8c5991;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1164",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 292.771,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34609,
    "c": 0.14467,
    "h": 322.5
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#5A1164
secondary
#419C35
accent
#EE3A50
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5A1164

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

Preview Lab → · Contrast checker → · Palette generator →

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