#56197D#56197D

#56197D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.159 H 307.9°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#56197D
RGBrgb(86, 25, 125)
HSLhsl(277, 67%, 29%)
HSVhsv(277, 80%, 49%)
CMYKcmyk(31.2%, 80%, 0%, 51%)
CIE-LABlab(24.18, 44.91, -44.01)
CIE-LCHlch(24.18, 62.88, 315.58°)
OKLaboklab(36.66% 0.0975 -0.1251)
OKLCHoklch(36.66% 0.159 307.9)
XYZxyz(7.8863, 4.1545, 19.7845)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56197D #407D19
analogous
#24197D #56197D #7D1972
triadic
#56197D #7D5619 #197D56
tetradic
#56197D #7D2419 #407D19 #19727D
square
#56197D #7D2419 #407D19 #19727D
split-complementary
#56197D #727D19 #197D24
monochromatic
#12051A #330F4A #56197D #7923B0 #9A39D7

Accessibility & contrast

On white

11.47
#56197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#56197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56197D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56197D#FFFFFF#000000##FFFFFF
##56197D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#50324B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56197d;
/* rgb */ color: rgb(86, 25, 125);
/* oklch */ color: oklch(36.7% 0.159 307.9);
Tailwind
colors: {
  custom: {
    50: '#8a5da3',
    500: '#56197d',
    950: '#000000',
  },
}
SCSS
$custom: #56197d;
$custom-light: #8a5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#56197d",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 276.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36664,
    "c": 0.15855,
    "h": 307.9
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#56197D
secondary
#6CB140
accent
#EA3E81
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56197D

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

Preview Lab → · Contrast checker → · Palette generator →

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