#56166C#56166C

#56166C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.145 H 315.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#56166C
RGBrgb(86, 22, 108)
HSLhsl(285, 66%, 25%)
HSVhsv(285, 80%, 42%)
CMYKcmyk(20.4%, 79.6%, 0%, 57.6%)
CIE-LABlab(22.43, 42.25, -35.94)
CIE-LCHlch(22.43, 55.47, 319.61°)
OKLaboklab(35.01% 0.1037 -0.1013)
OKLCHoklch(35.01% 0.145 315.7)
XYZxyz(6.8310, 3.6352, 14.5263)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56166C #2C6C16
analogous
#2B166C #56166C #6C1657
triadic
#56166C #6C5616 #166C56
tetradic
#56166C #6C2B16 #2C6C16 #16576C
square
#56166C #6C2B16 #2C6C16 #16576C
split-complementary
#56166C #576C16 #166C2B
monochromatic
#140519 #2E0C39 #56166C #7E209F #A72BD2

Accessibility & contrast

On white

12.16
#56166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#56166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56166C
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56166C#FFFFFF#000000##FFFFFF
##56166C1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#14376A
Tritanopia (blue-blind)
#542940
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56166c;
/* rgb */ color: rgb(86, 22, 108);
/* oklch */ color: oklch(35.0% 0.145 315.7);
Tailwind
colors: {
  custom: {
    50: '#895b97',
    500: '#56166c',
    950: '#000000',
  },
}
SCSS
$custom: #56166c;
$custom-light: #895b97;
$custom-dark: #000000;
JSON
{
  "hex": "#56166c",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 284.651,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3501,
    "c": 0.14499,
    "h": 315.7
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#56166C
secondary
#56A23C
accent
#E93F6A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56166C

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

Preview Lab → · Contrast checker → · Palette generator →

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