#5A1156#5A1156

#5A1156 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.133 H 330.5°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5A1156
RGBrgb(90, 17, 86)
HSLhsl(303, 68%, 21%)
HSVhsv(303, 81%, 35%)
CMYKcmyk(0%, 81.1%, 4.4%, 64.7%)
CIE-LABlab(21.01, 40.64, -23.66)
CIE-LCHlch(21.01, 47.02, 329.79°)
OKLaboklab(33.66% 0.1154 -0.0653)
OKLCHoklch(33.66% 0.133 330.5)
XYZxyz(6.0966, 3.2469, 9.1079)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1156 #115A15
analogous
#39115A #5A1156 #5A1131
triadic
#5A1156 #565A11 #11565A
tetradic
#5A1156 #5A3911 #115A15 #11315A
square
#5A1156 #5A3911 #115A15 #11315A
split-complementary
#5A1156 #315A11 #115A39
monochromatic
#1A0519 #270725 #5A1156 #8D1B87 #C124B8

Accessibility & contrast

On white

12.73
#5A1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1156
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1156#FFFFFF#000000##FFFFFF
##5A11561.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082C58
Deuteranopia (green-blind)
#283654
Tritanopia (blue-blind)
#5E1B33
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1156;
/* rgb */ color: rgb(90, 17, 86);
/* oklch */ color: oklch(33.7% 0.133 330.5);
Tailwind
colors: {
  custom: {
    50: '#8c5986',
    500: '#5a1156',
    950: '#000000',
  },
}
SCSS
$custom: #5a1156;
$custom-light: #8c5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1156",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 303.288,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3366,
    "c": 0.13263,
    "h": 330.5
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#5A1156
secondary
#349339
accent
#EB463D
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1156

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

Preview Lab → · Contrast checker → · Palette generator →

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