#56147F#56147F

#56147F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.165 H 307.7°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#56147F
RGBrgb(86, 20, 127)
HSLhsl(277, 73%, 29%)
HSVhsv(277, 84%, 50%)
CMYKcmyk(32.3%, 84.3%, 0%, 50.2%)
CIE-LABlab(23.71, 47.21, -46.04)
CIE-LCHlch(23.71, 65.94, 315.72°)
OKLaboklab(36.39% 0.1011 -0.131)
OKLCHoklch(36.39% 0.165 307.7)
XYZxyz(7.9179, 4.0112, 20.4317)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56147F #3D7F14
analogous
#20147F #56147F #7F1473
triadic
#56147F #7F5614 #147F56
tetradic
#56147F #7F2014 #3D7F14 #14737F
square
#56147F #7F2014 #3D7F14 #14737F
split-complementary
#56147F #737F14 #147F20
monochromatic
#12041A #320C4A #56147F #7A1CB4 #9B2FDE

Accessibility & contrast

On white

11.65
#56147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#56147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56147F
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56147F#FFFFFF#000000##FFFFFF
##56147F1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4F314B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56147f;
/* rgb */ color: rgb(86, 20, 127);
/* oklch */ color: oklch(36.4% 0.165 307.7);
Tailwind
colors: {
  custom: {
    50: '#8a5ba5',
    500: '#56147f',
    950: '#000000',
  },
}
SCSS
$custom: #56147f;
$custom-light: #8a5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#56147f",
  "rgb": {
    "r": 86,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 277.009,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36389,
    "c": 0.16548,
    "h": 307.7
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#56147F
secondary
#69B43B
accent
#EF387F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56147F

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

Preview Lab → · Contrast checker → · Palette generator →

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