#56217C#56217C

#56217C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.148 H 307.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#56217C
RGBrgb(86, 33, 124)
HSLhsl(275, 58%, 31%)
HSVhsv(275, 73%, 49%)
CMYKcmyk(30.6%, 73.4%, 0%, 51.4%)
CIE-LABlab(25.33, 41.17, -41.51)
CIE-LCHlch(25.33, 58.46, 314.76°)
OKLaboklab(37.45% 0.0896 -0.1178)
OKLCHoklch(37.45% 0.148 307.3)
XYZxyz(8.0189, 4.5215, 19.5152)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56217C #477C21
analogous
#28217C #56217C #7C2174
triadic
#56217C #7C5621 #217C56
tetradic
#56217C #7C2821 #477C21 #21747C
square
#56217C #7C2821 #477C21 #21747C
split-complementary
#56217C #747C21 #217C28
monochromatic
#13071B #34144C #56217C #782EAC #9749CF

Accessibility & contrast

On white

11.03
#56217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56217C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56217C#FFFFFF#000000##FFFFFF
##56217C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#043C7A
Tritanopia (blue-blind)
#50364C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56217c;
/* rgb */ color: rgb(86, 33, 124);
/* oklch */ color: oklch(37.5% 0.148 307.3);
Tailwind
colors: {
  custom: {
    50: '#8961a3',
    500: '#56217c',
    950: '#000000',
  },
}
SCSS
$custom: #56217c;
$custom-light: #8961a3;
$custom-dark: #000000;
JSON
{
  "hex": "#56217c",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 274.945,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37451,
    "c": 0.14797,
    "h": 307.3
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#56217C
secondary
#74AF4A
accent
#E14787
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56217C

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

Preview Lab → · Contrast checker → · Palette generator →

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