#56177A#56177A

#56177A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.158 H 309.4°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#56177A
RGBrgb(86, 23, 122)
HSLhsl(278, 68%, 28%)
HSVhsv(278, 81%, 48%)
CMYKcmyk(29.5%, 81.1%, 0%, 52.2%)
CIE-LABlab(23.66, 44.99, -42.94)
CIE-LCHlch(23.66, 62.20, 316.33°)
OKLaboklab(36.23% 0.1 -0.1219)
OKLCHoklch(36.23% 0.158 309.4)
XYZxyz(7.6563, 3.9965, 18.7767)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56177A #3B7A17
analogous
#24177A #56177A #7A176C
triadic
#56177A #7A5617 #177A56
tetradic
#56177A #7A2417 #3B7A17 #176C7A
square
#56177A #7A2417 #3B7A17 #176C7A
split-complementary
#56177A #6C7A17 #177A24
monochromatic
#12051A #320D47 #56177A #7A21AD #9C33D9

Accessibility & contrast

On white

11.67
#56177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56177A
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56177A#FFFFFF#000000##FFFFFF
##56177A1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#513048
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56177a;
/* rgb */ color: rgb(86, 23, 122);
/* oklch */ color: oklch(36.2% 0.158 309.4);
Tailwind
colors: {
  custom: {
    50: '#8a5ca1',
    500: '#56177a',
    950: '#000000',
  },
}
SCSS
$custom: #56177a;
$custom-light: #8a5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#56177a",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 278.182,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36225,
    "c": 0.15765,
    "h": 309.4
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#56177A
secondary
#67AF3E
accent
#EB3D7C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56177A

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

Preview Lab → · Contrast checker → · Palette generator →

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