#5A1168#5A1168

#5A1168 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.148 H 320.4°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5A1168
RGBrgb(90, 17, 104)
HSLhsl(290, 72%, 24%)
HSVhsv(290, 84%, 41%)
CMYKcmyk(13.5%, 83.7%, 0%, 59.2%)
CIE-LABlab(22.21, 44.03, -33.65)
CIE-LCHlch(22.21, 55.42, 322.61°)
OKLaboklab(34.9% 0.1142 -0.0944)
OKLCHoklch(34.9% 0.148 320.4)
XYZxyz(6.9153, 3.5744, 13.4197)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1168 #1F6811
analogous
#2E1168 #5A1168 #68114A
triadic
#5A1168 #685A11 #11685A
tetradic
#5A1168 #682E11 #1F6811 #114A68
square
#5A1168 #682E11 #1F6811 #114A68
split-complementary
#5A1168 #4A6811 #11682E
monochromatic
#17041A #2C0833 #5A1168 #881A9D #B522D1

Accessibility & contrast

On white

12.25
#5A1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1168
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1168#FFFFFF#000000##FFFFFF
##5A11681.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#1B3866
Tritanopia (blue-blind)
#5A243D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1168;
/* rgb */ color: rgb(90, 17, 104);
/* oklch */ color: oklch(34.9% 0.148 320.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a94',
    500: '#5a1168',
    950: '#000000',
  },
}
SCSS
$custom: #5a1168;
$custom-light: #8c5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1168",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 290.345,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34901,
    "c": 0.14821,
    "h": 320.4
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#5A1168
secondary
#46A035
accent
#EF3956
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1168

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

Preview Lab → · Contrast checker → · Palette generator →

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