#56178E#56178E

#56178E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.178 H 302.0°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#56178E
RGBrgb(86, 23, 142)
HSLhsl(272, 72%, 32%)
HSVhsv(272, 84%, 56%)
CMYKcmyk(39.4%, 83.8%, 0%, 44.3%)
CIE-LABlab(25.39, 49.69, -52.69)
CIE-LCHlch(25.39, 72.42, 313.32°)
OKLaboklab(37.97% 0.0942 -0.1505)
OKLCHoklch(37.97% 0.178 302)
XYZxyz(9.0254, 4.5442, 25.9876)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56178E #4F8E17
analogous
#1B178E #56178E #8E178A
triadic
#56178E #8E5617 #178E56
tetradic
#56178E #8E1B17 #4F8E17 #178A8E
square
#56178E #8E1B17 #4F8E17 #178A8E
split-complementary
#56178E #8A8E17 #178E1B
monochromatic
#160625 #360E59 #56178E #7620C3 #943FE0

Accessibility & contrast

On white

11.00
#56178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#56178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56178E
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56178E#FFFFFF#000000##FFFFFF
##56178E1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#4A3954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56178e;
/* rgb */ color: rgb(86, 23, 142);
/* oklch */ color: oklch(38.0% 0.178 302.0);
Tailwind
colors: {
  custom: {
    50: '#8c5eb0',
    500: '#56178e',
    950: '#000000',
  },
}
SCSS
$custom: #56178e;
$custom-light: #8c5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#56178e",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 271.765,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37971,
    "c": 0.1776,
    "h": 302
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#56178E
secondary
#7DC040
accent
#EF398F
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56178E

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

Preview Lab → · Contrast checker → · Palette generator →

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