#56218D#56218D

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

Color values

HEX#56218D
RGBrgb(86, 33, 141)
HSLhsl(269, 62%, 34%)
HSVhsv(269, 77%, 55%)
CMYKcmyk(39%, 76.6%, 0%, 44.7%)
CIE-LABlab(26.70, 45.41, -49.93)
CIE-LCHlch(26.70, 67.49, 312.28°)
OKLaboklab(38.86% 0.0861 -0.1425)
OKLCHoklch(38.86% 0.167 301.1)
XYZxyz(9.1882, 4.9892, 25.6731)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56218D #588D21
analogous
#21228D #56218D #8C218D
triadic
#56218D #8D5621 #218D56
tetradic
#56218D #8D2122 #588D21 #218D8C
square
#56218D #8D2122 #588D21 #218D8C
split-complementary
#56218D #8D8C21 #228D21
monochromatic
#1A0A2A #38155B #56218D #742DBF #9352D6

Accessibility & contrast

On white

10.51
#56218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56218D
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56218D#FFFFFF#000000##FFFFFF
##56218D1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#4A3D55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56218d;
/* rgb */ color: rgb(86, 33, 141);
/* oklch */ color: oklch(38.9% 0.167 301.1);
Tailwind
colors: {
  custom: {
    50: '#8b62af',
    500: '#56218d',
    950: '#000000',
  },
}
SCSS
$custom: #56218d;
$custom-light: #8b62af;
$custom-dark: #000000;
JSON
{
  "hex": "#56218d",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 269.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38858,
    "c": 0.16653,
    "h": 301.1
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#56218D
secondary
#86BA50
accent
#E54395
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56218D

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

Preview Lab → · Contrast checker → · Palette generator →

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