#56156B#56156B

#56156B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.145 H 316.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#56156B
RGBrgb(86, 21, 107)
HSLhsl(285, 67%, 25%)
HSVhsv(285, 80%, 42%)
CMYKcmyk(19.6%, 80.4%, 0%, 58%)
CIE-LABlab(22.22, 42.42, -35.63)
CIE-LCHlch(22.22, 55.39, 319.97°)
OKLaboklab(34.84% 0.1048 -0.1004)
OKLCHoklch(34.84% 0.145 316.2)
XYZxyz(6.7593, 3.5766, 14.2414)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56156B #2A6B15
analogous
#2B156B #56156B #6B1555
triadic
#56156B #6B5615 #156B56
tetradic
#56156B #6B2B15 #2A6B15 #15556B
square
#56156B #6B2B15 #2A6B15 #15556B
split-complementary
#56156B #556B15 #156B2B
monochromatic
#15051A #2D0B38 #56156B #7F1F9E #A829D1

Accessibility & contrast

On white

12.24
#56156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56156B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56156B#FFFFFF#000000##FFFFFF
##56156B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#143769
Tritanopia (blue-blind)
#55283F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #56156b;
/* rgb */ color: rgb(86, 21, 107);
/* oklch */ color: oklch(34.8% 0.145 316.2);
Tailwind
colors: {
  custom: {
    50: '#895b96',
    500: '#56156b',
    950: '#000000',
  },
}
SCSS
$custom: #56156b;
$custom-light: #895b96;
$custom-dark: #000000;
JSON
{
  "hex": "#56156b",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 285.349,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34839,
    "c": 0.14516,
    "h": 316.2
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#56156B
secondary
#53A23A
accent
#EA3E68
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #56156B

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

Preview Lab → · Contrast checker → · Palette generator →

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