#56188E#56188E

#56188E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.177 H 301.9°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#56188E
RGBrgb(86, 24, 142)
HSLhsl(272, 71%, 33%)
HSVhsv(272, 83%, 56%)
CMYKcmyk(39.4%, 83.1%, 0%, 44.3%)
CIE-LABlab(25.52, 49.33, -52.49)
CIE-LCHlch(25.52, 72.03, 313.22°)
OKLaboklab(38.06% 0.0935 -0.15)
OKLCHoklch(38.06% 0.177 301.9)
XYZxyz(9.0457, 4.5847, 25.9943)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56188E #508E18
analogous
#1B188E #56188E #8E188B
triadic
#56188E #8E5618 #188E56
tetradic
#56188E #8E1B18 #508E18 #188B8E
square
#56188E #8E1B18 #508E18 #188B8E
split-complementary
#56188E #8B8E18 #188E1B
monochromatic
#170625 #360F5A #56188E #7621C2 #9441DF

Accessibility & contrast

On white

10.95
#56188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56188E
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56188E#FFFFFF#000000##FFFFFF
##56188E1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56188e;
/* rgb */ color: rgb(86, 24, 142);
/* oklch */ color: oklch(38.1% 0.177 301.9);
Tailwind
colors: {
  custom: {
    50: '#8c5eb0',
    500: '#56188e',
    950: '#000000',
  },
}
SCSS
$custom: #56188e;
$custom-light: #8c5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#56188e",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 271.525,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38056,
    "c": 0.17672,
    "h": 301.9
  },
  "luminance": 0.04585
}

Semantic roles & 50–950 ramp

primary
#56188E
secondary
#7EC042
accent
#EE3A8F
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56188E

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

Preview Lab → · Contrast checker → · Palette generator →

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