#56167F#56167F

#56167F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.164 H 307.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#56167F
RGBrgb(86, 22, 127)
HSLhsl(277, 70%, 29%)
HSVhsv(277, 83%, 50%)
CMYKcmyk(32.3%, 82.7%, 0%, 50.2%)
CIE-LABlab(23.95, 46.51, -45.65)
CIE-LCHlch(23.95, 65.17, 315.54°)
OKLaboklab(36.56% 0.0995 -0.1298)
OKLCHoklch(36.56% 0.164 307.5)
XYZxyz(7.9546, 4.0847, 20.4439)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56167F #3F7F16
analogous
#21167F #56167F #7F1674
triadic
#56167F #7F5616 #167F56
tetradic
#56167F #7F2116 #3F7F16 #16747F
square
#56167F #7F2116 #3F7F16 #16747F
split-complementary
#56167F #747F16 #167F21
monochromatic
#12051A #330D4B #56167F #791FB3 #9A34DC

Accessibility & contrast

On white

11.56
#56167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#56167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56167F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56167F#FFFFFF#000000##FFFFFF
##56167F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4F324B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56167f;
/* rgb */ color: rgb(86, 22, 127);
/* oklch */ color: oklch(36.6% 0.164 307.5);
Tailwind
colors: {
  custom: {
    50: '#8a5ca5',
    500: '#56167f',
    950: '#000000',
  },
}
SCSS
$custom: #56167f;
$custom-light: #8a5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#56167f",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 276.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36557,
    "c": 0.16361,
    "h": 307.5
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#56167F
secondary
#6BB43D
accent
#ED3B80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56167F

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

Preview Lab → · Contrast checker → · Palette generator →

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