#56186F#56186F

#56186F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.146 H 314.0°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#56186F
RGBrgb(86, 24, 111)
HSLhsl(283, 64%, 26%)
HSVhsv(283, 78%, 44%)
CMYKcmyk(22.5%, 78.4%, 0%, 56.5%)
CIE-LABlab(22.93, 42.12, -37.07)
CIE-LCHlch(22.93, 56.11, 318.64°)
OKLaboklab(35.44% 0.1012 -0.1047)
OKLCHoklch(35.44% 0.146 314)
XYZxyz(7.0331, 3.7796, 15.3949)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56186F #316F18
analogous
#2B186F #56186F #6F185D
triadic
#56186F #6F5618 #186F56
tetradic
#56186F #6F2B18 #316F18 #185D6F
square
#56186F #6F2B18 #316F18 #185D6F
split-complementary
#56186F #5D6F18 #186F2B
monochromatic
#130519 #2F0D3D #56186F #7D23A1 #A32FD2

Accessibility & contrast

On white

11.96
#56186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#56186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56186F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56186F#FFFFFF#000000##FFFFFF
##56186F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#11386D
Tritanopia (blue-blind)
#542B42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #56186f;
/* rgb */ color: rgb(86, 24, 111);
/* oklch */ color: oklch(35.4% 0.146 314.0);
Tailwind
colors: {
  custom: {
    50: '#895c99',
    500: '#56186f',
    950: '#000000',
  },
}
SCSS
$custom: #56186f;
$custom-light: #895c99;
$custom-dark: #000000;
JSON
{
  "hex": "#56186f",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 282.759,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35437,
    "c": 0.14561,
    "h": 314
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#56186F
secondary
#5CA53E
accent
#E74070
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56186F

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

Preview Lab → · Contrast checker → · Palette generator →

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