#56126F#56126F

#56126F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.152 H 314.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#56126F
RGBrgb(86, 18, 111)
HSLhsl(284, 72%, 25%)
HSVhsv(284, 84%, 44%)
CMYKcmyk(22.5%, 83.8%, 0%, 56.5%)
CIE-LABlab(22.16, 44.34, -38.32)
CIE-LCHlch(22.16, 58.61, 319.17°)
OKLaboklab(34.89% 0.1068 -0.1083)
OKLCHoklch(34.89% 0.152 314.6)
XYZxyz(6.9228, 3.5590, 15.3581)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56126F #2B6F12
analogous
#27126F #56126F #6F1259
triadic
#56126F #6F5612 #126F56
tetradic
#56126F #6F2712 #2B6F12 #12596F
square
#56126F #6F2712 #2B6F12 #12596F
split-complementary
#56126F #596F12 #126F27
monochromatic
#14041A #2D093A #56126F #7F1BA4 #A823D8

Accessibility & contrast

On white

12.27
#56126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#56126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56126F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56126F#FFFFFF#000000##FFFFFF
##56126F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#0A376D
Tritanopia (blue-blind)
#542941
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #56126f;
/* rgb */ color: rgb(86, 18, 111);
/* oklch */ color: oklch(34.9% 0.152 314.6);
Tailwind
colors: {
  custom: {
    50: '#895a99',
    500: '#56126f',
    950: '#000000',
  },
}
SCSS
$custom: #56126f;
$custom-light: #895a99;
$custom-dark: #000000;
JSON
{
  "hex": "#56126f",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 283.871,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34892,
    "c": 0.15208,
    "h": 314.6
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#56126F
secondary
#55A637
accent
#EF396A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56126F

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

Preview Lab → · Contrast checker → · Palette generator →

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