#56186E#56186E

#56186E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.145 H 314.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#56186E
RGBrgb(86, 24, 110)
HSLhsl(283, 64%, 26%)
HSVhsv(283, 78%, 43%)
CMYKcmyk(21.8%, 78.2%, 0%, 56.9%)
CIE-LABlab(22.85, 41.89, -36.55)
CIE-LCHlch(22.85, 55.60, 318.90°)
OKLaboklab(35.36% 0.1014 -0.1031)
OKLCHoklch(35.36% 0.145 314.5)
XYZxyz(6.9784, 3.7577, 15.1065)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56186E #306E18
analogous
#2B186E #56186E #6E185B
triadic
#56186E #6E5618 #186E56
tetradic
#56186E #6E2B18 #306E18 #185B6E
square
#56186E #6E2B18 #306E18 #185B6E
split-complementary
#56186E #5B6E18 #186E2B
monochromatic
#140519 #2F0D3C #56186E #7D23A0 #A42FD2

Accessibility & contrast

On white

11.99
#56186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56186E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56186E#FFFFFF#000000##FFFFFF
##56186E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#13386C
Tritanopia (blue-blind)
#542B42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #56186e;
/* rgb */ color: rgb(86, 24, 110);
/* oklch */ color: oklch(35.4% 0.145 314.5);
Tailwind
colors: {
  custom: {
    50: '#895c98',
    500: '#56186e',
    950: '#000000',
  },
}
SCSS
$custom: #56186e;
$custom-light: #895c98;
$custom-dark: #000000;
JSON
{
  "hex": "#56186e",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 283.256,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35359,
    "c": 0.14462,
    "h": 314.5
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#56186E
secondary
#5AA43E
accent
#E7416F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56186E

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

Preview Lab → · Contrast checker → · Palette generator →

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