#56198E#56198E

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

Color values

HEX#56198E
RGBrgb(86, 25, 142)
HSLhsl(271, 70%, 33%)
HSVhsv(271, 82%, 56%)
CMYKcmyk(39.4%, 82.4%, 0%, 44.3%)
CIE-LABlab(25.64, 48.96, -52.28)
CIE-LCHlch(25.64, 71.63, 313.12°)
OKLaboklab(38.14% 0.0927 -0.1494)
OKLCHoklch(38.14% 0.176 301.8)
XYZxyz(9.0667, 4.6266, 26.0013)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56198E #518E19
analogous
#1B198E #56198E #8E198B
triadic
#56198E #8E5619 #198E56
tetradic
#56198E #8E1B19 #518E19 #198B8E
square
#56198E #8E1B19 #518E19 #198B8E
split-complementary
#56198E #8B8E19 #198E1B
monochromatic
#170726 #36105A #56198E #7622C2 #9443DE

Accessibility & contrast

On white

10.91
#56198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#56198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56198E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56198E#FFFFFF#000000##FFFFFF
##56198E1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56198e;
/* rgb */ color: rgb(86, 25, 142);
/* oklch */ color: oklch(38.1% 0.176 301.8);
Tailwind
colors: {
  custom: {
    50: '#8c5eb0',
    500: '#56198e',
    950: '#000000',
  },
}
SCSS
$custom: #56198e;
$custom-light: #8c5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#56198e",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 271.282,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38144,
    "c": 0.17581,
    "h": 301.8
  },
  "luminance": 0.04627
}

Semantic roles & 50–950 ramp

primary
#56198E
secondary
#7FBF44
accent
#ED3B90
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56198E

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

Preview Lab → · Contrast checker → · Palette generator →

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