#56166A#56166A

#56166A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.143 H 316.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#56166A
RGBrgb(86, 22, 106)
HSLhsl(286, 66%, 25%)
HSVhsv(286, 79%, 42%)
CMYKcmyk(18.9%, 79.2%, 0%, 58.4%)
CIE-LABlab(22.28, 41.82, -34.88)
CIE-LCHlch(22.28, 54.46, 320.17°)
OKLaboklab(34.86% 0.104 -0.0982)
OKLCHoklch(34.86% 0.143 316.6)
XYZxyz(6.7258, 3.5931, 13.9721)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56166A #2A6A16
analogous
#2C166A #56166A #6A1654
triadic
#56166A #6A5616 #166A56
tetradic
#56166A #6A2C16 #2A6A16 #16546A
square
#56166A #6A2C16 #2A6A16 #16546A
split-complementary
#56166A #546A16 #166A2C
monochromatic
#150519 #2D0B37 #56166A #7F219D #A82BCF

Accessibility & contrast

On white

12.22
#56166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#56166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56166A
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56166A#FFFFFF#000000##FFFFFF
##56166A1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#163768
Tritanopia (blue-blind)
#55283F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #56166a;
/* rgb */ color: rgb(86, 22, 106);
/* oklch */ color: oklch(34.9% 0.143 316.6);
Tailwind
colors: {
  custom: {
    50: '#895b95',
    500: '#56166a',
    950: '#000000',
  },
}
SCSS
$custom: #56166a;
$custom-light: #895b95;
$custom-dark: #000000;
JSON
{
  "hex": "#56166a",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 285.714,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34857,
    "c": 0.14306,
    "h": 316.6
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#56166A
secondary
#53A03B
accent
#E93F68
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56166A

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

Preview Lab → · Contrast checker → · Palette generator →

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