#56188D#56188D

#56188D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.176 H 302.3°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#56188D
RGBrgb(86, 24, 141)
HSLhsl(272, 71%, 32%)
HSVhsv(272, 83%, 55%)
CMYKcmyk(39%, 83%, 0%, 44.7%)
CIE-LABlab(25.43, 49.09, -52.02)
CIE-LCHlch(25.43, 71.52, 313.34°)
OKLaboklab(37.96% 0.0938 -0.1486)
OKLCHoklch(37.96% 0.176 302.3)
XYZxyz(8.9709, 4.5548, 25.6007)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56188D #4F8D18
analogous
#1C188D #56188D #8D1889
triadic
#56188D #8D5618 #188D56
tetradic
#56188D #8D1C18 #4F8D18 #18898D
square
#56188D #8D1C18 #4F8D18 #18898D
split-complementary
#56188D #898D18 #188D1C
monochromatic
#160624 #360F59 #56188D #7621C1 #9441DF

Accessibility & contrast

On white

10.99
#56188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#56188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56188D
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56188D#FFFFFF#000000##FFFFFF
##56188D1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#4A3954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56188d;
/* rgb */ color: rgb(86, 24, 141);
/* oklch */ color: oklch(38.0% 0.176 302.3);
Tailwind
colors: {
  custom: {
    50: '#8c5eaf',
    500: '#56188d',
    950: '#000000',
  },
}
SCSS
$custom: #56188d;
$custom-light: #8c5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#56188d",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 271.795,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37965,
    "c": 0.17571,
    "h": 302.3
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#56188D
secondary
#7DBF42
accent
#EE3A8F
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56188D

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

Preview Lab → · Contrast checker → · Palette generator →

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