#56168D#56168D

#56168D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.177 H 302.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#56168D
RGBrgb(86, 22, 141)
HSLhsl(272, 73%, 32%)
HSVhsv(272, 84%, 55%)
CMYKcmyk(39%, 84.4%, 0%, 44.7%)
CIE-LABlab(25.18, 49.80, -52.41)
CIE-LCHlch(25.18, 72.30, 313.53°)
OKLaboklab(37.8% 0.0953 -0.1497)
OKLCHoklch(37.8% 0.177 302.5)
XYZxyz(8.9312, 4.4753, 25.5874)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56168D #4D8D16
analogous
#1B168D #56168D #8D1689
triadic
#56168D #8D5616 #168D56
tetradic
#56168D #8D1B16 #4D8D16 #16898D
square
#56168D #8D1B16 #4D8D16 #16898D
split-complementary
#56168D #898D16 #168D1B
monochromatic
#150523 #360E58 #56168D #761EC2 #953DE1

Accessibility & contrast

On white

11.08
#56168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#56168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56168D
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56168D#FFFFFF#000000##FFFFFF
##56168D1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#4A3853
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56168d;
/* rgb */ color: rgb(86, 22, 141);
/* oklch */ color: oklch(37.8% 0.177 302.5);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#56168d',
    950: '#000000',
  },
}
SCSS
$custom: #56168d;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#56168d",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 272.269,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37797,
    "c": 0.17746,
    "h": 302.5
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#56168D
secondary
#7AC13E
accent
#F0388D
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56168D

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

Preview Lab → · Contrast checker → · Palette generator →

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