#56217E#56217E

#56217E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.150 H 306.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#56217E
RGBrgb(86, 33, 126)
HSLhsl(274, 58%, 31%)
HSVhsv(274, 74%, 49%)
CMYKcmyk(31.7%, 73.8%, 0%, 50.6%)
CIE-LABlab(25.48, 41.66, -42.53)
CIE-LCHlch(25.48, 59.53, 314.41°)
OKLaboklab(37.61% 0.0893 -0.1208)
OKLCHoklch(37.61% 0.15 306.5)
XYZxyz(8.1467, 4.5726, 20.1880)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56217E #497E21
analogous
#27217E #56217E #7E2177
triadic
#56217E #7E5621 #217E56
tetradic
#56217E #7E2721 #497E21 #21777E
square
#56217E #7E2721 #497E21 #21777E
split-complementary
#56217E #777E21 #217E27
monochromatic
#14081D #35144E #56217E #772EAE #964AD0

Accessibility & contrast

On white

10.97
#56217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#56217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56217E
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56217E#FFFFFF#000000##FFFFFF
##56217E1.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)
#003B81
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#4F374D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56217e;
/* rgb */ color: rgb(86, 33, 126);
/* oklch */ color: oklch(37.6% 0.150 306.5);
Tailwind
colors: {
  custom: {
    50: '#8a61a4',
    500: '#56217e',
    950: '#000000',
  },
}
SCSS
$custom: #56217e;
$custom-light: #8a61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56217e",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 274.194,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3761,
    "c": 0.15016,
    "h": 306.5
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#56217E
secondary
#76B14A
accent
#E24689
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56217E

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

Preview Lab → · Contrast checker → · Palette generator →

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