#56176E#56176E

#56176E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.146 H 314.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#56176E
RGBrgb(86, 23, 110)
HSLhsl(283, 65%, 26%)
HSVhsv(283, 79%, 43%)
CMYKcmyk(21.8%, 79.1%, 0%, 56.9%)
CIE-LABlab(22.71, 42.29, -36.77)
CIE-LCHlch(22.71, 56.05, 318.99°)
OKLaboklab(35.26% 0.1024 -0.1038)
OKLCHoklch(35.26% 0.146 314.6)
XYZxyz(6.9582, 3.7173, 15.0998)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56176E #2F6E17
analogous
#2A176E #56176E #6E175A
triadic
#56176E #6E5617 #176E56
tetradic
#56176E #6E2A17 #2F6E17 #175A6E
square
#56176E #6E2A17 #2F6E17 #175A6E
split-complementary
#56176E #5A6E17 #176E2A
monochromatic
#140519 #2E0C3B #56176E #7E22A1 #A52CD3

Accessibility & contrast

On white

12.05
#56176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56176E
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56176E#FFFFFF#000000##FFFFFF
##56176E1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56176e;
/* rgb */ color: rgb(86, 23, 110);
/* oklch */ color: oklch(35.3% 0.146 314.6);
Tailwind
colors: {
  custom: {
    50: '#895c98',
    500: '#56176e',
    950: '#000000',
  },
}
SCSS
$custom: #56176e;
$custom-light: #895c98;
$custom-dark: #000000;
JSON
{
  "hex": "#56176e",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 283.448,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3526,
    "c": 0.1458,
    "h": 314.6
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#56176E
secondary
#59A43D
accent
#E83F6E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56176E

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

Preview Lab → · Contrast checker → · Palette generator →

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