#56218E#56218E

#56218E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.168 H 300.8°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#56218E
RGBrgb(86, 33, 142)
HSLhsl(269, 62%, 34%)
HSVhsv(269, 77%, 56%)
CMYKcmyk(39.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(26.79, 45.66, -50.41)
CIE-LCHlch(26.79, 68.01, 312.17°)
OKLaboklab(38.95% 0.0859 -0.1439)
OKLCHoklch(38.95% 0.168 300.8)
XYZxyz(9.2629, 5.0191, 26.0667)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56218E #598E21
analogous
#21238E #56218E #8D218E
triadic
#56218E #8E5621 #218E56
tetradic
#56218E #8E2123 #598E21 #218E8D
square
#56218E #8E2123 #598E21 #218E8D
split-complementary
#56218E #8E8D21 #238E21
monochromatic
#1A0A2B #38155C #56218E #742DC0 #9352D7

Accessibility & contrast

On white

10.48
#56218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#56218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56218E
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56218E#FFFFFF#000000##FFFFFF
##56218E1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#493D56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56218e;
/* rgb */ color: rgb(86, 33, 142);
/* oklch */ color: oklch(38.9% 0.168 300.8);
Tailwind
colors: {
  custom: {
    50: '#8b62b0',
    500: '#56218e',
    950: '#000000',
  },
}
SCSS
$custom: #56218e;
$custom-light: #8b62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#56218e",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 269.174,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38945,
    "c": 0.16761,
    "h": 300.8
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#56218E
secondary
#87BA50
accent
#E54296
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #56218E

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

Preview Lab → · Contrast checker → · Palette generator →

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