#56166E#56166E

#56166E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.147 H 314.7°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#56166E
RGBrgb(86, 22, 110)
HSLhsl(284, 67%, 26%)
HSVhsv(284, 80%, 43%)
CMYKcmyk(21.8%, 80%, 0%, 56.9%)
CIE-LABlab(22.58, 42.68, -36.99)
CIE-LCHlch(22.58, 56.48, 319.09°)
OKLaboklab(35.17% 0.1034 -0.1044)
OKLCHoklch(35.17% 0.147 314.7)
XYZxyz(6.9387, 3.6783, 15.0933)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56166E #2E6E16
analogous
#2A166E #56166E #6E165A
triadic
#56166E #6E5616 #166E56
tetradic
#56166E #6E2A16 #2E6E16 #165A6E
square
#56166E #6E2A16 #2E6E16 #165A6E
split-complementary
#56166E #5A6E16 #166E2A
monochromatic
#14051A #2E0C3B #56166E #7E20A1 #A62AD4

Accessibility & contrast

On white

12.10
#56166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#56166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56166E
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56166E#FFFFFF#000000##FFFFFF
##56166E1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#11376C
Tritanopia (blue-blind)
#542A41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56166e;
/* rgb */ color: rgb(86, 22, 110);
/* oklch */ color: oklch(35.2% 0.147 314.7);
Tailwind
colors: {
  custom: {
    50: '#895b98',
    500: '#56166e',
    950: '#000000',
  },
}
SCSS
$custom: #56166e;
$custom-light: #895b98;
$custom-dark: #000000;
JSON
{
  "hex": "#56166e",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 283.636,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35165,
    "c": 0.14694,
    "h": 314.7
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#56166E
secondary
#58A43C
accent
#EA3E6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56166E

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

Preview Lab → · Contrast checker → · Palette generator →

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