#56147D#56147D

#56147D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.164 H 308.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#56147D
RGBrgb(86, 20, 125)
HSLhsl(278, 72%, 28%)
HSVhsv(278, 84%, 49%)
CMYKcmyk(31.2%, 84%, 0%, 51%)
CIE-LABlab(23.54, 46.76, -45.05)
CIE-LCHlch(23.54, 64.93, 316.07°)
OKLaboklab(36.22% 0.1017 -0.1281)
OKLCHoklch(36.22% 0.164 308.4)
XYZxyz(7.7888, 3.9595, 19.7520)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56147D #3B7D14
analogous
#21147D #56147D #7D146F
triadic
#56147D #7D5614 #147D56
tetradic
#56147D #7D2114 #3B7D14 #146F7D
square
#56147D #7D2114 #3B7D14 #146F7D
split-complementary
#56147D #6F7D14 #147D21
monochromatic
#12041A #320C48 #56147D #7A1CB2 #9C2EDE

Accessibility & contrast

On white

11.72
#56147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#56147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56147D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56147D#FFFFFF#000000##FFFFFF
##56147D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#50304A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56147d;
/* rgb */ color: rgb(86, 20, 125);
/* oklch */ color: oklch(36.2% 0.164 308.4);
Tailwind
colors: {
  custom: {
    50: '#8a5ba3',
    500: '#56147d',
    950: '#000000',
  },
}
SCSS
$custom: #56147d;
$custom-light: #8a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#56147d",
  "rgb": {
    "r": 86,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 277.714,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36217,
    "c": 0.16354,
    "h": 308.4
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#56147D
secondary
#67B23A
accent
#EF397C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56147D

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

Preview Lab → · Contrast checker → · Palette generator →

#56147D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva