#56126E#56126E

#56126E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.151 H 315.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#56126E
RGBrgb(86, 18, 110)
HSLhsl(284, 72%, 25%)
HSVhsv(284, 84%, 43%)
CMYKcmyk(21.8%, 83.6%, 0%, 56.9%)
CIE-LABlab(22.08, 44.13, -37.80)
CIE-LCHlch(22.08, 58.11, 319.42°)
OKLaboklab(34.81% 0.107 -0.1068)
OKLCHoklch(34.81% 0.151 315.1)
XYZxyz(6.8681, 3.5371, 15.0698)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56126E #2A6E12
analogous
#28126E #56126E #6E1258
triadic
#56126E #6E5612 #126E56
tetradic
#56126E #6E2812 #2A6E12 #12586E
square
#56126E #6E2812 #2A6E12 #12586E
split-complementary
#56126E #586E12 #126E28
monochromatic
#15041A #2D0939 #56126E #7F1BA3 #A823D7

Accessibility & contrast

On white

12.30
#56126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56126E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56126E#FFFFFF#000000##FFFFFF
##56126E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#0C366C
Tritanopia (blue-blind)
#542840
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #56126e;
/* rgb */ color: rgb(86, 18, 110);
/* oklch */ color: oklch(34.8% 0.151 315.1);
Tailwind
colors: {
  custom: {
    50: '#895a98',
    500: '#56126e',
    950: '#000000',
  },
}
SCSS
$custom: #56126e;
$custom-light: #895a98;
$custom-dark: #000000;
JSON
{
  "hex": "#56126e",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 284.348,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34812,
    "c": 0.15114,
    "h": 315.1
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#56126E
secondary
#53A537
accent
#EF3969
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #56126E

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

Preview Lab → · Contrast checker → · Palette generator →

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