#56217B#56217B

#56217B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.147 H 307.7°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#56217B
RGBrgb(86, 33, 123)
HSLhsl(275, 58%, 31%)
HSVhsv(275, 73%, 48%)
CMYKcmyk(30.1%, 73.2%, 0%, 51.8%)
CIE-LABlab(25.25, 40.92, -41.00)
CIE-LCHlch(25.25, 57.93, 314.94°)
OKLaboklab(37.37% 0.0897 -0.1163)
OKLCHoklch(37.37% 0.147 307.7)
XYZxyz(7.9560, 4.4963, 19.1838)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56217B #467B21
analogous
#29217B #56217B #7B2173
triadic
#56217B #7B5621 #217B56
tetradic
#56217B #7B2921 #467B21 #21737B
square
#56217B #7B2921 #467B21 #21737B
split-complementary
#56217B #737B21 #217B29
monochromatic
#13071A #34144B #56217B #782EAB #9748CE

Accessibility & contrast

On white

11.06
#56217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#56217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56217B
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56217B#FFFFFF#000000##FFFFFF
##56217B1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#073C79
Tritanopia (blue-blind)
#50354B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56217b;
/* rgb */ color: rgb(86, 33, 123);
/* oklch */ color: oklch(37.4% 0.147 307.7);
Tailwind
colors: {
  custom: {
    50: '#8961a2',
    500: '#56217b',
    950: '#000000',
  },
}
SCSS
$custom: #56217b;
$custom-light: #8961a2;
$custom-dark: #000000;
JSON
{
  "hex": "#56217b",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 275.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37372,
    "c": 0.14688,
    "h": 307.7
  },
  "luminance": 0.04496
}

Semantic roles & 50–950 ramp

primary
#56217B
secondary
#73AE4A
accent
#E14786
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56217B

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

Preview Lab → · Contrast checker → · Palette generator →

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