#56147A#56147A

#56147A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.161 H 309.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#56147A
RGBrgb(86, 20, 122)
HSLhsl(279, 72%, 28%)
HSVhsv(279, 84%, 48%)
CMYKcmyk(29.5%, 83.6%, 0%, 52.2%)
CIE-LABlab(23.28, 46.08, -43.55)
CIE-LCHlch(23.28, 63.41, 316.61°)
OKLaboklab(35.96% 0.1025 -0.1237)
OKLCHoklch(35.96% 0.161 309.7)
XYZxyz(7.6001, 3.8840, 18.7579)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56147A #387A14
analogous
#23147A #56147A #7A146B
triadic
#56147A #7A5614 #147A56
tetradic
#56147A #7A2314 #387A14 #146B7A
square
#56147A #7A2314 #387A14 #146B7A
split-complementary
#56147A #6B7A14 #147A23
monochromatic
#13041A #310B45 #56147A #7B1DAF #9E2CDC

Accessibility & contrast

On white

11.82
#56147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#56147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56147A
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56147A#FFFFFF#000000##FFFFFF
##56147A1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#512F48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #56147a;
/* rgb */ color: rgb(86, 20, 122);
/* oklch */ color: oklch(36.0% 0.161 309.7);
Tailwind
colors: {
  custom: {
    50: '#8a5ba1',
    500: '#56147a',
    950: '#000000',
  },
}
SCSS
$custom: #56147a;
$custom-light: #8a5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#56147a",
  "rgb": {
    "r": 86,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 278.824,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35962,
    "c": 0.16063,
    "h": 309.7
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#56147A
secondary
#64B03A
accent
#EF3979
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56147A

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

Preview Lab → · Contrast checker → · Palette generator →

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