#56125B#56125B

#56125B is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.134 H 325.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#56125B
RGBrgb(86, 18, 91)
HSLhsl(296, 67%, 21%)
HSVhsv(296, 80%, 36%)
CMYKcmyk(5.5%, 80.2%, 0%, 64.3%)
CIE-LABlab(20.70, 40.26, -27.54)
CIE-LCHlch(20.70, 48.77, 325.62°)
OKLaboklab(33.4% 0.1095 -0.0767)
OKLCHoklch(33.4% 0.134 325)
XYZxyz(5.9422, 3.1668, 10.1938)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56125B #175B12
analogous
#32125B #56125B #5B123C
triadic
#56125B #5B5612 #125B56
tetradic
#56125B #5B3212 #175B12 #123C5B
square
#56125B #5B3212 #175B12 #123C5B
split-complementary
#56125B #3C5B12 #125B32
monochromatic
#18051A #260828 #56125B #861C8E #B726C1

Accessibility & contrast

On white

12.86
#56125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#56125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56125B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56125B#FFFFFF#000000##FFFFFF
##56125B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#213559
Tritanopia (blue-blind)
#581F36
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #56125b;
/* rgb */ color: rgb(86, 18, 91);
/* oklch */ color: oklch(33.4% 0.134 325.0);
Tailwind
colors: {
  custom: {
    50: '#89598a',
    500: '#56125b',
    950: '#000000',
  },
}
SCSS
$custom: #56125b;
$custom-light: #89598a;
$custom-dark: #000000;
JSON
{
  "hex": "#56125b",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 295.89,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.334,
    "c": 0.13371,
    "h": 325
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#56125B
secondary
#3C9335
accent
#EA3E4A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #56125B

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

Preview Lab → · Contrast checker → · Palette generator →

#56125B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva