#56218A#56218A

#56218A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.163 H 302.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#56218A
RGBrgb(86, 33, 138)
HSLhsl(270, 61%, 34%)
HSVhsv(270, 76%, 54%)
CMYKcmyk(37.7%, 76.1%, 0%, 45.9%)
CIE-LABlab(26.45, 44.65, -48.48)
CIE-LCHlch(26.45, 65.90, 312.65°)
OKLaboklab(38.6% 0.0868 -0.1383)
OKLCHoklch(38.6% 0.163 302.1)
XYZxyz(8.9680, 4.9011, 24.5134)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56218A #558A21
analogous
#21218A #56218A #8A2189
triadic
#56218A #8A5621 #218A56
tetradic
#56218A #8A2121 #558A21 #21898A
square
#56218A #8A2121 #558A21 #21898A
split-complementary
#56218A #898A21 #218A21
monochromatic
#180927 #371559 #56218A #752DBB #9350D5

Accessibility & contrast

On white

10.60
#56218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#56218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56218A
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56218A#FFFFFF#000000##FFFFFF
##56218A1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#4B3B54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56218a;
/* rgb */ color: rgb(86, 33, 138);
/* oklch */ color: oklch(38.6% 0.163 302.1);
Tailwind
colors: {
  custom: {
    50: '#8b62ad',
    500: '#56218a',
    950: '#000000',
  },
}
SCSS
$custom: #56218a;
$custom-light: #8b62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#56218a",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 270.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38601,
    "c": 0.16326,
    "h": 302.1
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#56218A
secondary
#83B94E
accent
#E54393
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56218A

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

Preview Lab → · Contrast checker → · Palette generator →

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