#56198B#56198B

#56198B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.173 H 302.8°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#56198B
RGBrgb(86, 25, 139)
HSLhsl(272, 70%, 32%)
HSVhsv(272, 82%, 55%)
CMYKcmyk(38.1%, 82%, 0%, 45.5%)
CIE-LABlab(25.38, 48.24, -50.86)
CIE-LCHlch(25.38, 70.09, 313.49°)
OKLaboklab(37.87% 0.0937 -0.1452)
OKLCHoklch(37.87% 0.173 302.8)
XYZxyz(8.8445, 4.5378, 24.8310)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56198B #4E8B19
analogous
#1D198B #56198B #8B1987
triadic
#56198B #8B5619 #198B56
tetradic
#56198B #8B1D19 #4E8B19 #19878B
square
#56198B #8B1D19 #4E8B19 #19878B
split-complementary
#56198B #878B19 #198B1D
monochromatic
#160623 #361057 #56198B #7622BF #9541DD

Accessibility & contrast

On white

11.01
#56198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56198B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56198B#FFFFFF#000000##FFFFFF
##56198B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#4B3853
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56198b;
/* rgb */ color: rgb(86, 25, 139);
/* oklch */ color: oklch(37.9% 0.173 302.8);
Tailwind
colors: {
  custom: {
    50: '#8b5eae',
    500: '#56198b',
    950: '#000000',
  },
}
SCSS
$custom: #56198b;
$custom-light: #8b5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#56198b",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 272.105,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37874,
    "c": 0.17276,
    "h": 302.8
  },
  "luminance": 0.04538
}

Semantic roles & 50–950 ramp

primary
#56198B
secondary
#7CBE42
accent
#EC3B8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #56198B

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

Preview Lab → · Contrast checker → · Palette generator →

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