#56176B#56176B

#56176B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.143 H 316.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#56176B
RGBrgb(86, 23, 107)
HSLhsl(285, 65%, 25%)
HSVhsv(285, 79%, 42%)
CMYKcmyk(19.6%, 78.5%, 0%, 58%)
CIE-LABlab(22.49, 41.64, -35.19)
CIE-LCHlch(22.49, 54.52, 319.80°)
OKLaboklab(35.03% 0.1029 -0.0991)
OKLCHoklch(35.03% 0.143 316.1)
XYZxyz(6.7976, 3.6530, 14.2541)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56176B #2C6B17
analogous
#2C176B #56176B #6B1756
triadic
#56176B #6B5617 #176B56
tetradic
#56176B #6B2C17 #2C6B17 #17566B
square
#56176B #6B2C17 #2C6B17 #17566B
split-complementary
#56176B #566B17 #176B2C
monochromatic
#140519 #2E0C39 #56176B #7E229D #A72DD0

Accessibility & contrast

On white

12.13
#56176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#56176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56176B
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56176B#FFFFFF#000000##FFFFFF
##56176B1.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)
#00326D
Deuteranopia (green-blind)
#163769
Tritanopia (blue-blind)
#552940
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56176b;
/* rgb */ color: rgb(86, 23, 107);
/* oklch */ color: oklch(35.0% 0.143 316.1);
Tailwind
colors: {
  custom: {
    50: '#895c96',
    500: '#56176b',
    950: '#000000',
  },
}
SCSS
$custom: #56176b;
$custom-light: #895c96;
$custom-dark: #000000;
JSON
{
  "hex": "#56176b",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 285,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35031,
    "c": 0.14286,
    "h": 316.1
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#56176B
secondary
#56A13D
accent
#E8406A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56176B

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

Preview Lab → · Contrast checker → · Palette generator →

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