#56198C#56198C

#56198C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.174 H 302.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#56198C
RGBrgb(86, 25, 140)
HSLhsl(272, 70%, 32%)
HSVhsv(272, 82%, 55%)
CMYKcmyk(38.6%, 82.1%, 0%, 45.1%)
CIE-LABlab(25.46, 48.48, -51.33)
CIE-LCHlch(25.46, 70.61, 313.36°)
OKLaboklab(37.96% 0.0933 -0.1466)
OKLCHoklch(37.96% 0.174 302.5)
XYZxyz(8.9179, 4.5671, 25.2176)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56198C #4F8C19
analogous
#1C198C #56198C #8C1989
triadic
#56198C #8C5619 #198C56
tetradic
#56198C #8C1C19 #4F8C19 #19898C
square
#56198C #8C1C19 #4F8C19 #19898C
split-complementary
#56198C #898C19 #198C1C
monochromatic
#160624 #361058 #56198C #7622C0 #9442DD

Accessibility & contrast

On white

10.98
#56198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#56198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56198C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56198C#FFFFFF#000000##FFFFFF
##56198C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#4A3953
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56198c;
/* rgb */ color: rgb(86, 25, 140);
/* oklch */ color: oklch(38.0% 0.174 302.5);
Tailwind
colors: {
  custom: {
    50: '#8b5eaf',
    500: '#56198c',
    950: '#000000',
  },
}
SCSS
$custom: #56198c;
$custom-light: #8b5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#56198c",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 271.826,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37964,
    "c": 0.17378,
    "h": 302.5
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#56198C
secondary
#7DBE43
accent
#ED3B8F
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #56198C

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

Preview Lab → · Contrast checker → · Palette generator →

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