#56124E#56124E

#56124E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.122 H 333.3°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#56124E
RGBrgb(86, 18, 78)
HSLhsl(307, 65%, 20%)
HSVhsv(307, 79%, 34%)
CMYKcmyk(0%, 79.1%, 9.3%, 66.3%)
CIE-LABlab(19.89, 37.87, -20.08)
CIE-LCHlch(19.89, 42.86, 332.07°)
OKLaboklab(32.56% 0.1094 -0.0551)
OKLCHoklch(32.56% 0.123 333.3)
XYZxyz(5.4292, 2.9616, 7.4919)
Luminance0.0296 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56124E #12561A
analogous
#3C1256 #56124E #56122C
triadic
#56124E #4E5612 #124E56
tetradic
#56124E #563C12 #12561A #122C56
square
#56124E #563C12 #12561A #122C56
split-complementary
#56124E #2C5612 #12563C
monochromatic
#190517 #230720 #56124E #891D7C #BB27AA

Accessibility & contrast

On white

13.19
#56124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#56124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56124E
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56124E#FFFFFF#000000##FFFFFF
##56124E1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A50
Deuteranopia (green-blind)
#29344C
Tritanopia (blue-blind)
#5A192E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #56124e;
/* rgb */ color: rgb(86, 18, 78);
/* oklch */ color: oklch(32.6% 0.122 333.3);
Tailwind
colors: {
  custom: {
    50: '#885880',
    500: '#56124e',
    950: '#000000',
  },
}
SCSS
$custom: #56124e;
$custom-light: #885880;
$custom-dark: #000000;
JSON
{
  "hex": "#56124e",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 307.059,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32558,
    "c": 0.1225,
    "h": 333.3
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#56124E
secondary
#358F40
accent
#E8533F
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #56124E

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

Preview Lab → · Contrast checker → · Palette generator →

#56124E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva