#56177E#56177E

#56177E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.162 H 307.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#56177E
RGBrgb(86, 23, 126)
HSLhsl(277, 69%, 29%)
HSVhsv(277, 82%, 49%)
CMYKcmyk(31.7%, 81.7%, 0%, 50.6%)
CIE-LABlab(23.99, 45.91, -44.94)
CIE-LCHlch(23.99, 64.25, 315.61°)
OKLaboklab(36.56% 0.099 -0.1278)
OKLCHoklch(36.56% 0.162 307.8)
XYZxyz(7.9092, 4.0977, 20.1089)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56177E #3F7E17
analogous
#23177E #56177E #7E1773
triadic
#56177E #7E5617 #177E56
tetradic
#56177E #7E2317 #3F7E17 #17737E
square
#56177E #7E2317 #3F7E17 #17737E
split-complementary
#56177E #737E17 #177E23
monochromatic
#12051A #330E4A #56177E #7920B2 #9A35DA

Accessibility & contrast

On white

11.54
#56177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#56177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56177E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56177E#FFFFFF#000000##FFFFFF
##56177E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#4F324B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56177e;
/* rgb */ color: rgb(86, 23, 126);
/* oklch */ color: oklch(36.6% 0.162 307.8);
Tailwind
colors: {
  custom: {
    50: '#8a5da4',
    500: '#56177e',
    950: '#000000',
  },
}
SCSS
$custom: #56177e;
$custom-light: #8a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#56177e",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 276.699,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.16163,
    "h": 307.8
  },
  "luminance": 0.04098
}

Semantic roles & 50–950 ramp

primary
#56177E
secondary
#6BB33E
accent
#EC3C80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56177E

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

Preview Lab → · Contrast checker → · Palette generator →

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