#56168E#56168E

#56168E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.178 H 302.1°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#56168E
RGBrgb(86, 22, 142)
HSLhsl(272, 73%, 32%)
HSVhsv(272, 85%, 56%)
CMYKcmyk(39.4%, 84.5%, 0%, 44.3%)
CIE-LABlab(25.28, 50.03, -52.88)
CIE-LCHlch(25.28, 72.80, 313.41°)
OKLaboklab(37.89% 0.0949 -0.1511)
OKLCHoklch(37.89% 0.178 302.1)
XYZxyz(9.0060, 4.5052, 25.9811)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56168E #4E8E16
analogous
#1A168E #56168E #8E168A
triadic
#56168E #8E5616 #168E56
tetradic
#56168E #8E1A16 #4E8E16 #168A8E
square
#56168E #8E1A16 #4E8E16 #168A8E
split-complementary
#56168E #8A8E16 #168E1A
monochromatic
#160624 #360E59 #56168E #761EC3 #953DE1

Accessibility & contrast

On white

11.05
#56168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56168E
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56168E#FFFFFF#000000##FFFFFF
##56168E1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#4A3854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56168e;
/* rgb */ color: rgb(86, 22, 142);
/* oklch */ color: oklch(37.9% 0.178 302.1);
Tailwind
colors: {
  custom: {
    50: '#8c5db0',
    500: '#56168e',
    950: '#000000',
  },
}
SCSS
$custom: #56168e;
$custom-light: #8c5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#56168e",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 272,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37889,
    "c": 0.17845,
    "h": 302.1
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

primary
#56168E
secondary
#7CC13F
accent
#F0388E
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56168E

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

Preview Lab → · Contrast checker → · Palette generator →

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