#56218F#56218F

#56218F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.169 H 300.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#56218F
RGBrgb(86, 33, 143)
HSLhsl(269, 63%, 35%)
HSVhsv(269, 77%, 56%)
CMYKcmyk(39.9%, 76.9%, 0%, 43.9%)
CIE-LABlab(26.87, 45.91, -50.89)
CIE-LCHlch(26.87, 68.54, 312.06°)
OKLaboklab(39.03% 0.0857 -0.1453)
OKLCHoklch(39.03% 0.169 300.5)
XYZxyz(9.3383, 5.0492, 26.4639)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56218F #5A8F21
analogous
#21238F #56218F #8D218F
triadic
#56218F #8F5621 #218F56
tetradic
#56218F #8F2123 #5A8F21 #218F8D
square
#56218F #8F2123 #5A8F21 #218F8D
split-complementary
#56218F #8F8D21 #238F21
monochromatic
#1A0A2C #38165D #56218F #742CC1 #9353D7

Accessibility & contrast

On white

10.45
#56218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#56218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56218F
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56218F#FFFFFF#000000##FFFFFF
##56218F1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#493D57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56218f;
/* rgb */ color: rgb(86, 33, 143);
/* oklch */ color: oklch(39.0% 0.169 300.5);
Tailwind
colors: {
  custom: {
    50: '#8b62b1',
    500: '#56218f',
    950: '#000000',
  },
}
SCSS
$custom: #56218f;
$custom-light: #8b62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#56218f",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 268.909,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39031,
    "c": 0.1687,
    "h": 300.5
  },
  "luminance": 0.05049
}

Semantic roles & 50–950 ramp

primary
#56218F
secondary
#88BB51
accent
#E64297
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #56218F

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

Preview Lab → · Contrast checker → · Palette generator →

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