#5A156A#5A156A

#5A156A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.146 H 319.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#5A156A
RGBrgb(90, 21, 106)
HSLhsl(289, 67%, 25%)
HSVhsv(289, 80%, 42%)
CMYKcmyk(15.1%, 80.2%, 0%, 58.4%)
CIE-LABlab(22.83, 43.06, -33.96)
CIE-LCHlch(22.83, 54.84, 321.74°)
OKLaboklab(35.39% 0.1104 -0.0954)
OKLCHoklch(35.39% 0.146 319.2)
XYZxyz(7.0858, 3.7509, 13.9836)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A156A #256A15
analogous
#30156A #5A156A #6A154F
triadic
#5A156A #6A5A15 #156A5A
tetradic
#5A156A #6A3015 #256A15 #154F6A
square
#5A156A #6A3015 #256A15 #154F6A
split-complementary
#5A156A #4F6A15 #156A30
monochromatic
#16051A #2F0B37 #5A156A #851F9D #B129D0

Accessibility & contrast

On white

12.00
#5A156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A156A
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A156A#FFFFFF#000000##FFFFFF
##5A156A1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#1B3968
Tritanopia (blue-blind)
#5A273F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a156a;
/* rgb */ color: rgb(90, 21, 106);
/* oklch */ color: oklch(35.4% 0.146 319.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b95',
    500: '#5a156a',
    950: '#000000',
  },
}
SCSS
$custom: #5a156a;
$custom-light: #8c5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a156a",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 288.706,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35385,
    "c": 0.14585,
    "h": 319.2
  },
  "luminance": 0.03751
}

Semantic roles & 50–950 ramp

primary
#5A156A
secondary
#4DA13A
accent
#EA3E5E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A156A

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

Preview Lab → · Contrast checker → · Palette generator →

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