#56156F#56156F

#56156F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.149 H 314.3°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#56156F
RGBrgb(86, 21, 111)
HSLhsl(283, 68%, 26%)
HSVhsv(283, 81%, 44%)
CMYKcmyk(22.5%, 81.1%, 0%, 56.5%)
CIE-LABlab(22.52, 43.28, -37.73)
CIE-LCHlch(22.52, 57.42, 318.92°)
OKLaboklab(35.15% 0.1041 -0.1066)
OKLCHoklch(35.15% 0.149 314.3)
XYZxyz(6.9747, 3.6627, 15.3754)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56156F #2E6F15
analogous
#29156F #56156F #6F155B
triadic
#56156F #6F5615 #156F56
tetradic
#56156F #6F2915 #2E6F15 #155B6F
square
#56156F #6F2915 #2E6F15 #155B6F
split-complementary
#56156F #5B6F15 #156F29
monochromatic
#14051A #2E0B3C #56156F #7E1FA2 #A628D6

Accessibility & contrast

On white

12.12
#56156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#56156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56156F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56156F#FFFFFF#000000##FFFFFF
##56156F1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#0E376D
Tritanopia (blue-blind)
#542A42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #56156f;
/* rgb */ color: rgb(86, 21, 111);
/* oklch */ color: oklch(35.1% 0.149 314.3);
Tailwind
colors: {
  custom: {
    50: '#895b99',
    500: '#56156f',
    950: '#000000',
  },
}
SCSS
$custom: #56156f;
$custom-light: #895b99;
$custom-dark: #000000;
JSON
{
  "hex": "#56156f",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 283.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3515,
    "c": 0.149,
    "h": 314.3
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#56156F
secondary
#58A53A
accent
#EB3D6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56156F

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

Preview Lab → · Contrast checker → · Palette generator →

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