#56167B#56167B

#56167B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.160 H 309.0°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#56167B
RGBrgb(86, 22, 123)
HSLhsl(278, 70%, 28%)
HSVhsv(278, 82%, 48%)
CMYKcmyk(30.1%, 82.1%, 0%, 51.8%)
CIE-LABlab(23.61, 45.59, -43.66)
CIE-LCHlch(23.61, 63.12, 316.24°)
OKLaboklab(36.22% 0.1006 -0.124)
OKLCHoklch(36.22% 0.16 309)
XYZxyz(7.6991, 3.9825, 19.0982)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56167B #3B7B16
analogous
#23167B #56167B #7B166D
triadic
#56167B #7B5616 #167B56
tetradic
#56167B #7B2316 #3B7B16 #166D7B
square
#56167B #7B2316 #3B7B16 #166D7B
split-complementary
#56167B #6D7B16 #167B23
monochromatic
#12051A #320D47 #56167B #7A1FAF #9C31DA

Accessibility & contrast

On white

11.69
#56167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56167B
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56167B#FFFFFF#000000##FFFFFF
##56167B1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#503049
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56167b;
/* rgb */ color: rgb(86, 22, 123);
/* oklch */ color: oklch(36.2% 0.160 309.0);
Tailwind
colors: {
  custom: {
    50: '#8a5ca2',
    500: '#56167b',
    950: '#000000',
  },
}
SCSS
$custom: #56167b;
$custom-light: #8a5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#56167b",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 278.02,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36218,
    "c": 0.15966,
    "h": 309
  },
  "luminance": 0.03982
}

Semantic roles & 50–950 ramp

primary
#56167B
secondary
#67B03D
accent
#EC3B7C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56167B

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

Preview Lab → · Contrast checker → · Palette generator →

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