#56186D#56186D

#56186D is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.144 H 315.0°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#56186D
RGBrgb(86, 24, 109)
HSLhsl(284, 64%, 26%)
HSVhsv(284, 78%, 43%)
CMYKcmyk(21.1%, 78%, 0%, 57.3%)
CIE-LABlab(22.78, 41.67, -36.02)
CIE-LCHlch(22.78, 55.08, 319.16°)
OKLaboklab(35.28% 0.1015 -0.1016)
OKLCHoklch(35.28% 0.144 315)
XYZxyz(6.9242, 3.7361, 14.8214)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56186D #2F6D18
analogous
#2B186D #56186D #6D1859
triadic
#56186D #6D5618 #186D56
tetradic
#56186D #6D2B18 #2F6D18 #18596D
square
#56186D #6D2B18 #2F6D18 #18596D
split-complementary
#56186D #596D18 #186D2B
monochromatic
#140619 #2E0D3B #56186D #7E239F #A52ED1

Accessibility & contrast

On white

12.02
#56186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#56186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56186D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56186D#FFFFFF#000000##FFFFFF
##56186D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#14386B
Tritanopia (blue-blind)
#542B41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56186d;
/* rgb */ color: rgb(86, 24, 109);
/* oklch */ color: oklch(35.3% 0.144 315.0);
Tailwind
colors: {
  custom: {
    50: '#895c97',
    500: '#56186d',
    950: '#000000',
  },
}
SCSS
$custom: #56186d;
$custom-light: #895c97;
$custom-dark: #000000;
JSON
{
  "hex": "#56186d",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 283.765,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35283,
    "c": 0.14363,
    "h": 315
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#56186D
secondary
#59A33E
accent
#E7416E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56186D

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

Preview Lab → · Contrast checker → · Palette generator →

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