#56166D#56166D

#56166D is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.146 H 315.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#56166D
RGBrgb(86, 22, 109)
HSLhsl(284, 66%, 26%)
HSVhsv(284, 80%, 43%)
CMYKcmyk(21.1%, 79.8%, 0%, 57.3%)
CIE-LABlab(22.50, 42.47, -36.47)
CIE-LCHlch(22.50, 55.98, 319.35°)
OKLaboklab(35.09% 0.1035 -0.1029)
OKLCHoklch(35.09% 0.146 315.2)
XYZxyz(6.8845, 3.6566, 14.8082)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56166D #2D6D16
analogous
#2A166D #56166D #6D1658
triadic
#56166D #6D5616 #166D56
tetradic
#56166D #6D2A16 #2D6D16 #16586D
square
#56166D #6D2A16 #2D6D16 #16586D
split-complementary
#56166D #586D16 #166D2A
monochromatic
#140519 #2E0C3A #56166D #7E20A0 #A62BD3

Accessibility & contrast

On white

12.13
#56166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#56166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56166D
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56166D#FFFFFF#000000##FFFFFF
##56166D1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#12376B
Tritanopia (blue-blind)
#542A41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56166d;
/* rgb */ color: rgb(86, 22, 109);
/* oklch */ color: oklch(35.1% 0.146 315.2);
Tailwind
colors: {
  custom: {
    50: '#895b97',
    500: '#56166d',
    950: '#000000',
  },
}
SCSS
$custom: #56166d;
$custom-light: #895b97;
$custom-dark: #000000;
JSON
{
  "hex": "#56166d",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 284.138,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35087,
    "c": 0.14596,
    "h": 315.2
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#56166D
secondary
#57A33C
accent
#E93E6C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56166D

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

Preview Lab → · Contrast checker → · Palette generator →

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