#56166B#56166B

#56166B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.144 H 316.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#56166B
RGBrgb(86, 22, 107)
HSLhsl(285, 66%, 25%)
HSVhsv(285, 79%, 42%)
CMYKcmyk(19.6%, 79.4%, 0%, 58%)
CIE-LABlab(22.35, 42.03, -35.41)
CIE-LCHlch(22.35, 54.96, 319.89°)
OKLaboklab(34.93% 0.1039 -0.0998)
OKLCHoklch(34.93% 0.144 316.1)
XYZxyz(6.7781, 3.6141, 14.2476)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56166B #2B6B16
analogous
#2B166B #56166B #6B1656
triadic
#56166B #6B5616 #166B56
tetradic
#56166B #6B2B16 #2B6B16 #16566B
square
#56166B #6B2B16 #2B6B16 #16566B
split-complementary
#56166B #566B16 #166B2B
monochromatic
#140519 #2D0C38 #56166B #7F209E #A82BD1

Accessibility & contrast

On white

12.19
#56166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#56166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56166B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56166B#FFFFFF#000000##FFFFFF
##56166B1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#153769
Tritanopia (blue-blind)
#552940
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #56166b;
/* rgb */ color: rgb(86, 22, 107);
/* oklch */ color: oklch(34.9% 0.144 316.1);
Tailwind
colors: {
  custom: {
    50: '#895b96',
    500: '#56166b',
    950: '#000000',
  },
}
SCSS
$custom: #56166b;
$custom-light: #895b96;
$custom-dark: #000000;
JSON
{
  "hex": "#56166b",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 285.176,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.14402,
    "h": 316.1
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#56166B
secondary
#55A13B
accent
#E93F69
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56166B

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

Preview Lab → · Contrast checker → · Palette generator →

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