#5A156C#5A156C

#5A156C is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.148 H 318.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#5A156C
RGBrgb(90, 21, 108)
HSLhsl(288, 67%, 25%)
HSVhsv(288, 81%, 42%)
CMYKcmyk(16.7%, 80.6%, 0%, 57.6%)
CIE-LABlab(22.98, 43.48, -35.02)
CIE-LCHlch(22.98, 55.83, 321.15°)
OKLaboklab(35.53% 0.1101 -0.0985)
OKLCHoklch(35.53% 0.148 318.2)
XYZxyz(7.1910, 3.7930, 14.5378)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A156C #276C15
analogous
#2E156C #5A156C #6C1552
triadic
#5A156C #6C5A15 #156C5A
tetradic
#5A156C #6C2E15 #276C15 #15526C
square
#5A156C #6C2E15 #276C15 #15526C
split-complementary
#5A156C #526C15 #156C2E
monochromatic
#15051A #2F0B39 #5A156C #851F9F #AF29D2

Accessibility & contrast

On white

11.94
#5A156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5A156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A156C
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A156C#FFFFFF#000000##FFFFFF
##5A156C1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#19396A
Tritanopia (blue-blind)
#592840
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a156c;
/* rgb */ color: rgb(90, 21, 108);
/* oklch */ color: oklch(35.5% 0.148 318.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b97',
    500: '#5a156c',
    950: '#000000',
  },
}
SCSS
$custom: #5a156c;
$custom-light: #8c5b97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a156c",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 287.586,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35533,
    "c": 0.14771,
    "h": 318.2
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#5A156C
secondary
#50A33A
accent
#EA3D61
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A156C

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

Preview Lab → · Contrast checker → · Palette generator →

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