#56218C#56218C

#56218C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.165 H 301.5°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#56218C
RGBrgb(86, 33, 140)
HSLhsl(270, 62%, 34%)
HSVhsv(270, 76%, 55%)
CMYKcmyk(38.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(26.62, 45.15, -49.45)
CIE-LCHlch(26.62, 66.96, 312.40°)
OKLaboklab(38.77% 0.0864 -0.1411)
OKLCHoklch(38.77% 0.165 301.5)
XYZxyz(9.1141, 4.9595, 25.2830)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56218C #578C21
analogous
#21218C #56218C #8C218C
triadic
#56218C #8C5621 #218C56
tetradic
#56218C #8C2121 #578C21 #218C8C
square
#56218C #8C2121 #578C21 #218C8C
split-complementary
#56218C #8C8C21 #218C21
monochromatic
#190A29 #38155A #56218C #742DBE #9351D6

Accessibility & contrast

On white

10.54
#56218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#56218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56218C
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56218C#FFFFFF#000000##FFFFFF
##56218C1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#4A3C55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56218c;
/* rgb */ color: rgb(86, 33, 140);
/* oklch */ color: oklch(38.8% 0.165 301.5);
Tailwind
colors: {
  custom: {
    50: '#8b62ae',
    500: '#56218c',
    950: '#000000',
  },
}
SCSS
$custom: #56218c;
$custom-light: #8b62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56218c",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 269.72,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38772,
    "c": 0.16544,
    "h": 301.5
  },
  "luminance": 0.0496
}

Semantic roles & 50–950 ramp

primary
#56218C
secondary
#85B94F
accent
#E54395
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56218C

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

Preview Lab → · Contrast checker → · Palette generator →

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