#56156C#56156C

#56156C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.146 H 315.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#56156C
RGBrgb(86, 21, 108)
HSLhsl(285, 67%, 25%)
HSVhsv(285, 81%, 42%)
CMYKcmyk(20.4%, 80.6%, 0%, 57.6%)
CIE-LABlab(22.29, 42.63, -36.16)
CIE-LCHlch(22.29, 55.90, 319.70°)
OKLaboklab(34.92% 0.1047 -0.102)
OKLCHoklch(34.92% 0.146 315.8)
XYZxyz(6.8123, 3.5977, 14.5200)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56156C #2B6C15
analogous
#2B156C #56156C #6C1556
triadic
#56156C #6C5615 #156C56
tetradic
#56156C #6C2B15 #2B6C15 #15566C
square
#56156C #6C2B15 #2B6C15 #15566C
split-complementary
#56156C #566C15 #156C2B
monochromatic
#14051A #2D0B39 #56156C #7F1F9F #A829D2

Accessibility & contrast

On white

12.21
#56156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#56156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56156C
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56156C#FFFFFF#000000##FFFFFF
##56156C1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56156c;
/* rgb */ color: rgb(86, 21, 108);
/* oklch */ color: oklch(34.9% 0.146 315.8);
Tailwind
colors: {
  custom: {
    50: '#895b97',
    500: '#56156c',
    950: '#000000',
  },
}
SCSS
$custom: #56156c;
$custom-light: #895b97;
$custom-dark: #000000;
JSON
{
  "hex": "#56156c",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 284.828,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34916,
    "c": 0.14612,
    "h": 315.8
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#56156C
secondary
#55A33A
accent
#EA3D69
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56156C

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

Preview Lab → · Contrast checker → · Palette generator →

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