#56186A#56186A

#56186A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.141 H 316.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#56186A
RGBrgb(86, 24, 106)
HSLhsl(285, 63%, 25%)
HSVhsv(285, 77%, 42%)
CMYKcmyk(18.9%, 77.4%, 0%, 58.4%)
CIE-LABlab(22.56, 41.02, -34.43)
CIE-LCHlch(22.56, 53.55, 319.99°)
OKLaboklab(35.06% 0.102 -0.0969)
OKLCHoklch(35.06% 0.141 316.5)
XYZxyz(6.7655, 3.6726, 13.9854)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56186A #2C6A18
analogous
#2D186A #56186A #6A1855
triadic
#56186A #6A5618 #186A56
tetradic
#56186A #6A2D18 #2C6A18 #18556A
square
#56186A #6A2D18 #2C6A18 #18556A
split-complementary
#56186A #556A18 #186A2D
monochromatic
#140619 #2E0D38 #56186A #7E239C #A72FCE

Accessibility & contrast

On white

12.11
#56186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#56186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56186A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56186A#FFFFFF#000000##FFFFFF
##56186A1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#183868
Tritanopia (blue-blind)
#552940
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56186a;
/* rgb */ color: rgb(86, 24, 106);
/* oklch */ color: oklch(35.1% 0.141 316.5);
Tailwind
colors: {
  custom: {
    50: '#895c95',
    500: '#56186a',
    950: '#000000',
  },
}
SCSS
$custom: #56186a;
$custom-light: #895c95;
$custom-dark: #000000;
JSON
{
  "hex": "#56186a",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 285.366,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35056,
    "c": 0.14067,
    "h": 316.5
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#56186A
secondary
#56A03E
accent
#E6426A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56186A

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

Preview Lab → · Contrast checker → · Palette generator →

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