#56178F#56178F

#56178F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.179 H 301.7°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#56178F
RGBrgb(86, 23, 143)
HSLhsl(272, 72%, 33%)
HSVhsv(272, 84%, 56%)
CMYKcmyk(39.9%, 83.9%, 0%, 43.9%)
CIE-LABlab(25.49, 49.93, -53.16)
CIE-LCHlch(25.49, 72.93, 313.20°)
OKLaboklab(38.06% 0.0939 -0.1519)
OKLCHoklch(38.06% 0.179 301.7)
XYZxyz(9.1009, 4.5743, 26.3847)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56178F #508F17
analogous
#1A178F #56178F #8F178C
triadic
#56178F #8F5617 #178F56
tetradic
#56178F #8F1A17 #508F17 #178C8F
square
#56178F #8F1A17 #508F17 #178C8F
split-complementary
#56178F #8C8F17 #178F1A
monochromatic
#170626 #360F5A #56178F #761FC4 #9440E0

Accessibility & contrast

On white

10.97
#56178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56178F
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56178F#FFFFFF#000000##FFFFFF
##56178F1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#493955
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56178f;
/* rgb */ color: rgb(86, 23, 143);
/* oklch */ color: oklch(38.1% 0.179 301.7);
Tailwind
colors: {
  custom: {
    50: '#8c5eb1',
    500: '#56178f',
    950: '#000000',
  },
}
SCSS
$custom: #56178f;
$custom-light: #8c5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#56178f",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 271.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38062,
    "c": 0.1786,
    "h": 301.7
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#56178F
secondary
#7EC141
accent
#EF398F
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56178F

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

Preview Lab → · Contrast checker → · Palette generator →

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