#56186C#56186C

#56186C is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.143 H 315.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#56186C
RGBrgb(86, 24, 108)
HSLhsl(284, 64%, 26%)
HSVhsv(284, 78%, 42%)
CMYKcmyk(20.4%, 77.8%, 0%, 57.6%)
CIE-LABlab(22.70, 41.45, -35.49)
CIE-LCHlch(22.70, 54.57, 319.43°)
OKLaboklab(35.21% 0.1017 -0.1)
OKLCHoklch(35.21% 0.143 315.5)
XYZxyz(6.8707, 3.7147, 14.5395)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56186C #2E6C18
analogous
#2C186C #56186C #6C1858
triadic
#56186C #6C5618 #186C56
tetradic
#56186C #6C2C18 #2E6C18 #18586C
square
#56186C #6C2C18 #2E6C18 #18586C
split-complementary
#56186C #586C18 #186C2C
monochromatic
#140619 #2E0D3A #56186C #7E239E #A62ED0

Accessibility & contrast

On white

12.05
#56186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#56186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56186C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56186C#FFFFFF#000000##FFFFFF
##56186C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#16386A
Tritanopia (blue-blind)
#542A41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56186c;
/* rgb */ color: rgb(86, 24, 108);
/* oklch */ color: oklch(35.2% 0.143 315.5);
Tailwind
colors: {
  custom: {
    50: '#895c97',
    500: '#56186c',
    950: '#000000',
  },
}
SCSS
$custom: #56186c;
$custom-light: #895c97;
$custom-dark: #000000;
JSON
{
  "hex": "#56186c",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 284.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35207,
    "c": 0.14265,
    "h": 315.5
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#56186C
secondary
#58A23E
accent
#E7416C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56186C

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

Preview Lab → · Contrast checker → · Palette generator →

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