#56177B#56177B

#56177B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.159 H 308.9°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#56177B
RGBrgb(86, 23, 123)
HSLhsl(278, 68%, 29%)
HSVhsv(278, 81%, 48%)
CMYKcmyk(30.1%, 81.3%, 0%, 51.8%)
CIE-LABlab(23.74, 45.22, -43.45)
CIE-LCHlch(23.74, 62.71, 316.15°)
OKLaboklab(36.31% 0.0997 -0.1234)
OKLCHoklch(36.31% 0.159 308.9)
XYZxyz(7.7186, 4.0214, 19.1047)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56177B #3C7B17
analogous
#24177B #56177B #7B176E
triadic
#56177B #7B5617 #177B56
tetradic
#56177B #7B2417 #3C7B17 #176E7B
square
#56177B #7B2417 #3C7B17 #176E7B
split-complementary
#56177B #6E7B17 #177B24
monochromatic
#12051A #320D47 #56177B #7A21AF #9C33D9

Accessibility & contrast

On white

11.64
#56177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#56177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56177B
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56177B#FFFFFF#000000##FFFFFF
##56177B1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#503049
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56177b;
/* rgb */ color: rgb(86, 23, 123);
/* oklch */ color: oklch(36.3% 0.159 308.9);
Tailwind
colors: {
  custom: {
    50: '#8a5ca2',
    500: '#56177b',
    950: '#000000',
  },
}
SCSS
$custom: #56177b;
$custom-light: #8a5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#56177b",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 277.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36308,
    "c": 0.15865,
    "h": 308.9
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#56177B
secondary
#68B03E
accent
#EB3C7D
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56177B

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

Preview Lab → · Contrast checker → · Palette generator →

#56177B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva