#56167C#56167C

#56167C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.161 H 308.6°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#56167C
RGBrgb(86, 22, 124)
HSLhsl(278, 70%, 29%)
HSVhsv(278, 82%, 49%)
CMYKcmyk(30.6%, 82.3%, 0%, 51.4%)
CIE-LABlab(23.70, 45.82, -44.16)
CIE-LCHlch(23.70, 63.63, 316.06°)
OKLaboklab(36.3% 0.1003 -0.1255)
OKLCHoklch(36.3% 0.161 308.6)
XYZxyz(7.7620, 4.0076, 19.4295)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56167C #3C7C16
analogous
#23167C #56167C #7C166F
triadic
#56167C #7C5616 #167C56
tetradic
#56167C #7C2316 #3C7C16 #166F7C
square
#56167C #7C2316 #3C7C16 #166F7C
split-complementary
#56167C #6F7C16 #167C23
monochromatic
#12051A #320D48 #56167C #7A1FB0 #9C32DB

Accessibility & contrast

On white

11.66
#56167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#56167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56167C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56167C#FFFFFF#000000##FFFFFF
##56167C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#503049
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56167c;
/* rgb */ color: rgb(86, 22, 124);
/* oklch */ color: oklch(36.3% 0.161 308.6);
Tailwind
colors: {
  custom: {
    50: '#8a5ca3',
    500: '#56167c',
    950: '#000000',
  },
}
SCSS
$custom: #56167c;
$custom-light: #8a5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#56167c",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 277.647,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36302,
    "c": 0.16065,
    "h": 308.6
  },
  "luminance": 0.04007
}

Semantic roles & 50–950 ramp

primary
#56167C
secondary
#68B13D
accent
#ED3B7D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56167C

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

Preview Lab → · Contrast checker → · Palette generator →

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