#56178C#56178C

#56178C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.176 H 302.7°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#56178C
RGBrgb(86, 23, 140)
HSLhsl(272, 72%, 32%)
HSVhsv(272, 84%, 55%)
CMYKcmyk(38.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(25.21, 49.21, -51.74)
CIE-LCHlch(25.21, 71.41, 313.56°)
OKLaboklab(37.79% 0.0949 -0.1478)
OKLCHoklch(37.79% 0.176 302.7)
XYZxyz(8.8766, 4.4847, 25.2038)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56178C #4D8C17
analogous
#1C178C #56178C #8C1788
triadic
#56178C #8C5617 #178C56
tetradic
#56178C #8C1C17 #4D8C17 #17888C
square
#56178C #8C1C17 #4D8C17 #17888C
split-complementary
#56178C #888C17 #178C1C
monochromatic
#150623 #360E57 #56178C #7620C1 #953EDF

Accessibility & contrast

On white

11.07
#56178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#56178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56178C
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56178C#FFFFFF#000000##FFFFFF
##56178C1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#4A3853
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56178c;
/* rgb */ color: rgb(86, 23, 140);
/* oklch */ color: oklch(37.8% 0.176 302.7);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#56178c',
    950: '#000000',
  },
}
SCSS
$custom: #56178c;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#56178c",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 272.308,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37789,
    "c": 0.1756,
    "h": 302.7
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#56178C
secondary
#7ABF3F
accent
#EF398D
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56178C

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

Preview Lab → · Contrast checker → · Palette generator →

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