#56156A#56156A

#56156A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.144 H 316.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#56156A
RGBrgb(86, 21, 106)
HSLhsl(286, 67%, 25%)
HSVhsv(286, 80%, 42%)
CMYKcmyk(18.9%, 80.2%, 0%, 58.4%)
CIE-LABlab(22.14, 42.20, -35.10)
CIE-LCHlch(22.14, 54.89, 320.25°)
OKLaboklab(34.76% 0.105 -0.0988)
OKLCHoklch(34.76% 0.144 316.7)
XYZxyz(6.7070, 3.5557, 13.9659)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56156A #296A15
analogous
#2B156A #56156A #6A1554
triadic
#56156A #6A5615 #156A56
tetradic
#56156A #6A2B15 #296A15 #15546A
square
#56156A #6A2B15 #296A15 #15546A
split-complementary
#56156A #546A15 #156A2B
monochromatic
#15051A #2D0B37 #56156A #7F1F9D #A929D0

Accessibility & contrast

On white

12.27
#56156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#56156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56156A
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56156A#FFFFFF#000000##FFFFFF
##56156A1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#163768
Tritanopia (blue-blind)
#55283F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #56156a;
/* rgb */ color: rgb(86, 21, 106);
/* oklch */ color: oklch(34.8% 0.144 316.7);
Tailwind
colors: {
  custom: {
    50: '#895b95',
    500: '#56156a',
    950: '#000000',
  },
}
SCSS
$custom: #56156a;
$custom-light: #895b95;
$custom-dark: #000000;
JSON
{
  "hex": "#56156a",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 285.882,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34763,
    "c": 0.1442,
    "h": 316.7
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#56156A
secondary
#52A13A
accent
#EA3E66
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56156A

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

Preview Lab → · Contrast checker → · Palette generator →

#56156A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva