#56168B#56168B

#56168B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.175 H 303.1°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#56168B
RGBrgb(86, 22, 139)
HSLhsl(273, 73%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(38.1%, 84.2%, 0%, 45.5%)
CIE-LABlab(25.00, 49.32, -51.46)
CIE-LCHlch(25.00, 71.28, 313.78°)
OKLaboklab(37.62% 0.0959 -0.1469)
OKLCHoklch(37.62% 0.175 303.1)
XYZxyz(8.7838, 4.4163, 24.8108)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56168B #4B8B16
analogous
#1C168B #56168B #8B1686
triadic
#56168B #8B5616 #168B56
tetradic
#56168B #8B1C16 #4B8B16 #16868B
square
#56168B #8B1C16 #4B8B16 #16868B
split-complementary
#56168B #868B16 #168B1C
monochromatic
#150521 #350E56 #56168B #771EC0 #953BE0

Accessibility & contrast

On white

11.15
#56168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#56168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56168B
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56168B#FFFFFF#000000##FFFFFF
##56168B1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#4B3752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56168b;
/* rgb */ color: rgb(86, 22, 139);
/* oklch */ color: oklch(37.6% 0.175 303.1);
Tailwind
colors: {
  custom: {
    50: '#8c5dae',
    500: '#56168b',
    950: '#000000',
  },
}
SCSS
$custom: #56168b;
$custom-light: #8c5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#56168b",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 272.821,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37616,
    "c": 0.17548,
    "h": 303.1
  },
  "luminance": 0.04416
}

Semantic roles & 50–950 ramp

primary
#56168B
secondary
#78BF3E
accent
#EF388B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56168B

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

Preview Lab → · Contrast checker → · Palette generator →

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