#56167A#56167A

#56167A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.159 H 309.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#56167A
RGBrgb(86, 22, 122)
HSLhsl(278, 69%, 28%)
HSVhsv(278, 82%, 48%)
CMYKcmyk(29.5%, 82%, 0%, 52.2%)
CIE-LABlab(23.53, 45.37, -43.15)
CIE-LCHlch(23.53, 62.61, 316.43°)
OKLaboklab(36.13% 0.1008 -0.1225)
OKLCHoklch(36.13% 0.159 309.5)
XYZxyz(7.6368, 3.9575, 18.7702)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56167A #3A7A16
analogous
#24167A #56167A #7A166C
triadic
#56167A #7A5616 #167A56
tetradic
#56167A #7A2416 #3A7A16 #166C7A
square
#56167A #7A2416 #3A7A16 #166C7A
split-complementary
#56167A #6C7A16 #167A24
monochromatic
#12051A #310D46 #56167A #7B1FAE #9D31DA

Accessibility & contrast

On white

11.72
#56167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#56167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56167A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56167A#FFFFFF#000000##FFFFFF
##56167A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#512F48
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56167a;
/* rgb */ color: rgb(86, 22, 122);
/* oklch */ color: oklch(36.1% 0.159 309.5);
Tailwind
colors: {
  custom: {
    50: '#8a5ca1',
    500: '#56167a',
    950: '#000000',
  },
}
SCSS
$custom: #56167a;
$custom-light: #8a5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#56167a",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 278.4,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.15868,
    "h": 309.5
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#56167A
secondary
#66AF3D
accent
#EC3C7B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56167A

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

Preview Lab → · Contrast checker → · Palette generator →

#56167A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva