#56178D#56178D

#56178D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.177 H 302.4°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#56178D
RGBrgb(86, 23, 141)
HSLhsl(272, 72%, 32%)
HSVhsv(272, 84%, 55%)
CMYKcmyk(39%, 83.7%, 0%, 44.7%)
CIE-LABlab(25.30, 49.45, -52.22)
CIE-LCHlch(25.30, 71.91, 313.44°)
OKLaboklab(37.88% 0.0945 -0.1492)
OKLCHoklch(37.88% 0.177 302.4)
XYZxyz(8.9507, 4.5143, 25.5939)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56178D #4E8D17
analogous
#1B178D #56178D #8D1789
triadic
#56178D #8D5617 #178D56
tetradic
#56178D #8D1B17 #4E8D17 #17898D
square
#56178D #8D1B17 #4E8D17 #17898D
split-complementary
#56178D #898D17 #178D1B
monochromatic
#160624 #360E58 #56178D #7620C2 #953FE0

Accessibility & contrast

On white

11.04
#56178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56178D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56178D#FFFFFF#000000##FFFFFF
##56178D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56178d;
/* rgb */ color: rgb(86, 23, 141);
/* oklch */ color: oklch(37.9% 0.177 302.4);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#56178d',
    950: '#000000',
  },
}
SCSS
$custom: #56178d;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#56178d",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 272.034,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3788,
    "c": 0.1766,
    "h": 302.4
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#56178D
secondary
#7CC040
accent
#EF398E
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56178D

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

Preview Lab → · Contrast checker → · Palette generator →

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