#56186B#56186B

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

Color values

HEX#56186B
RGBrgb(86, 24, 107)
HSLhsl(285, 63%, 26%)
HSVhsv(285, 78%, 42%)
CMYKcmyk(19.6%, 77.6%, 0%, 58%)
CIE-LABlab(22.63, 41.24, -34.96)
CIE-LCHlch(22.63, 54.06, 319.71°)
OKLaboklab(35.13% 0.1018 -0.0985)
OKLCHoklch(35.13% 0.142 316)
XYZxyz(6.8178, 3.6935, 14.2609)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56186B #2D6B18
analogous
#2C186B #56186B #6B1856
triadic
#56186B #6B5618 #186B56
tetradic
#56186B #6B2C18 #2D6B18 #18566B
square
#56186B #6B2C18 #2D6B18 #18566B
split-complementary
#56186B #566B18 #186B2C
monochromatic
#140619 #2E0D39 #56186B #7E239D #A62ECF

Accessibility & contrast

On white

12.08
#56186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56186B
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56186B#FFFFFF#000000##FFFFFF
##56186B1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#173869
Tritanopia (blue-blind)
#552A40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56186b;
/* rgb */ color: rgb(86, 24, 107);
/* oklch */ color: oklch(35.1% 0.142 316.0);
Tailwind
colors: {
  custom: {
    50: '#895c96',
    500: '#56186b',
    950: '#000000',
  },
}
SCSS
$custom: #56186b;
$custom-light: #895c96;
$custom-dark: #000000;
JSON
{
  "hex": "#56186b",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 284.819,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35131,
    "c": 0.14166,
    "h": 316
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#56186B
secondary
#57A13E
accent
#E6416B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56186B

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

Preview Lab → · Contrast checker → · Palette generator →

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