#56178A#56178A

#56178A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.174 H 303.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#56178A
RGBrgb(86, 23, 138)
HSLhsl(273, 71%, 32%)
HSVhsv(273, 83%, 54%)
CMYKcmyk(37.7%, 83.3%, 0%, 45.9%)
CIE-LABlab(25.03, 48.73, -50.79)
CIE-LCHlch(25.03, 70.39, 313.81°)
OKLaboklab(37.61% 0.0955 -0.145)
OKLCHoklch(37.61% 0.174 303.4)
XYZxyz(8.7305, 4.4262, 24.4342)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56178A #4B8A17
analogous
#1D178A #56178A #8A1785
triadic
#56178A #8A5617 #178A56
tetradic
#56178A #8A1D17 #4B8A17 #17858A
square
#56178A #8A1D17 #4B8A17 #17858A
split-complementary
#56178A #858A17 #178A1D
monochromatic
#150621 #350E56 #56178A #7720BE #953DDF

Accessibility & contrast

On white

11.14
#56178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#56178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56178A
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56178A#FFFFFF#000000##FFFFFF
##56178A1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#4B3752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56178a;
/* rgb */ color: rgb(86, 23, 138);
/* oklch */ color: oklch(37.6% 0.174 303.4);
Tailwind
colors: {
  custom: {
    50: '#8b5dad',
    500: '#56178a',
    950: '#000000',
  },
}
SCSS
$custom: #56178a;
$custom-light: #8b5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#56178a",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 272.87,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37609,
    "c": 0.1736,
    "h": 303.4
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#56178A
secondary
#78BE3F
accent
#EE3A8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #56178A

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

Preview Lab → · Contrast checker → · Palette generator →

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