#56176F#56176F

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

Color values

HEX#56176F
RGBrgb(86, 23, 111)
HSLhsl(283, 66%, 26%)
HSVhsv(283, 79%, 44%)
CMYKcmyk(22.5%, 79.3%, 0%, 56.5%)
CIE-LABlab(22.79, 42.51, -37.30)
CIE-LCHlch(22.79, 56.56, 318.74°)
OKLaboklab(35.34% 0.1022 -0.1053)
OKLCHoklch(35.34% 0.147 314.1)
XYZxyz(7.0129, 3.7392, 15.3882)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56176F #306F17
analogous
#2A176F #56176F #6F175C
triadic
#56176F #6F5617 #176F56
tetradic
#56176F #6F2A17 #306F17 #175C6F
square
#56176F #6F2A17 #306F17 #175C6F
split-complementary
#56176F #5C6F17 #176F2A
monochromatic
#140519 #2F0C3C #56176F #7D22A2 #A42DD3

Accessibility & contrast

On white

12.02
#56176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#56176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56176F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56176F#FFFFFF#000000##FFFFFF
##56176F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#10386D
Tritanopia (blue-blind)
#542B42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56176f;
/* rgb */ color: rgb(86, 23, 111);
/* oklch */ color: oklch(35.3% 0.147 314.1);
Tailwind
colors: {
  custom: {
    50: '#895c99',
    500: '#56176f',
    950: '#000000',
  },
}
SCSS
$custom: #56176f;
$custom-light: #895c99;
$custom-dark: #000000;
JSON
{
  "hex": "#56176f",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 282.955,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35338,
    "c": 0.14678,
    "h": 314.1
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#56176F
secondary
#5AA53D
accent
#E93F6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56176F

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

Preview Lab → · Contrast checker → · Palette generator →

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