#56218B#56218B

#56218B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.164 H 301.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#56218B
RGBrgb(86, 33, 139)
HSLhsl(270, 62%, 34%)
HSVhsv(270, 76%, 55%)
CMYKcmyk(38.1%, 76.3%, 0%, 45.5%)
CIE-LABlab(26.54, 44.90, -48.96)
CIE-LCHlch(26.54, 66.43, 312.52°)
OKLaboklab(38.69% 0.0866 -0.1397)
OKLCHoklch(38.69% 0.164 301.8)
XYZxyz(9.0407, 4.9302, 24.8964)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56218B #568B21
analogous
#21218B #56218B #8B218B
triadic
#56218B #8B5621 #218B56
tetradic
#56218B #8B2121 #568B21 #218B8B
square
#56218B #8B2121 #568B21 #218B8B
split-complementary
#56218B #8B8B21 #218B21
monochromatic
#190A28 #37155A #56218B #752DBC #9351D6

Accessibility & contrast

On white

10.57
#56218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56218B
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56218B#FFFFFF#000000##FFFFFF
##56218B1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#4B3C54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56218b;
/* rgb */ color: rgb(86, 33, 139);
/* oklch */ color: oklch(38.7% 0.164 301.8);
Tailwind
colors: {
  custom: {
    50: '#8b62ae',
    500: '#56218b',
    950: '#000000',
  },
}
SCSS
$custom: #56218b;
$custom-light: #8b62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56218b",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 270,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38687,
    "c": 0.16435,
    "h": 301.8
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#56218B
secondary
#84B94F
accent
#E54394
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56218B

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

Preview Lab → · Contrast checker → · Palette generator →

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