#56168C#56168C

#56168C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.7% C 0.176 H 302.8°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#56168C
RGBrgb(86, 22, 140)
HSLhsl(273, 73%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(38.6%, 84.3%, 0%, 45.1%)
CIE-LABlab(25.09, 49.56, -51.94)
CIE-LCHlch(25.09, 71.79, 313.66°)
OKLaboklab(37.71% 0.0956 -0.1483)
OKLCHoklch(37.71% 0.176 302.8)
XYZxyz(8.8572, 4.4457, 25.1973)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56168C #4C8C16
analogous
#1B168C #56168C #8C1687
triadic
#56168C #8C5616 #168C56
tetradic
#56168C #8C1B16 #4C8C16 #16878C
square
#56168C #8C1B16 #4C8C16 #16878C
split-complementary
#56168C #878C16 #168C1B
monochromatic
#150522 #360E57 #56168C #761EC1 #953CE0

Accessibility & contrast

On white

11.12
#56168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#56168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56168C
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56168C#FFFFFF#000000##FFFFFF
##56168C1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#4A3853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56168c;
/* rgb */ color: rgb(86, 22, 140);
/* oklch */ color: oklch(37.7% 0.176 302.8);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#56168c',
    950: '#000000',
  },
}
SCSS
$custom: #56168c;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#56168c",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 272.542,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.17647,
    "h": 302.8
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#56168C
secondary
#79C03E
accent
#F0388C
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56168C

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

Preview Lab → · Contrast checker → · Palette generator →

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