#56177F#56177F

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

Color values

HEX#56177F
RGBrgb(86, 23, 127)
HSLhsl(276, 69%, 29%)
HSVhsv(276, 82%, 50%)
CMYKcmyk(32.3%, 81.9%, 0%, 50.2%)
CIE-LABlab(24.08, 46.14, -45.44)
CIE-LCHlch(24.08, 64.76, 315.44°)
OKLaboklab(36.65% 0.0987 -0.1292)
OKLCHoklch(36.65% 0.163 307.4)
XYZxyz(7.9741, 4.1236, 20.4504)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56177F #407F17
analogous
#22177F #56177F #7F1774
triadic
#56177F #7F5617 #177F56
tetradic
#56177F #7F2217 #407F17 #17747F
square
#56177F #7F2217 #407F17 #17747F
split-complementary
#56177F #747F17 #177F22
monochromatic
#12051A #330E4B #56177F #7920B3 #9A36DB

Accessibility & contrast

On white

11.51
#56177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56177F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56177F#FFFFFF#000000##FFFFFF
##56177F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56177f;
/* rgb */ color: rgb(86, 23, 127);
/* oklch */ color: oklch(36.6% 0.163 307.4);
Tailwind
colors: {
  custom: {
    50: '#8a5da5',
    500: '#56177f',
    950: '#000000',
  },
}
SCSS
$custom: #56177f;
$custom-light: #8a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#56177f",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 276.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36646,
    "c": 0.16263,
    "h": 307.4
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#56177F
secondary
#6CB43E
accent
#EC3C81
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56177F

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

Preview Lab → · Contrast checker → · Palette generator →

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