#56147E#56147E

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

Color values

HEX#56147E
RGBrgb(86, 20, 126)
HSLhsl(277, 73%, 29%)
HSVhsv(277, 84%, 49%)
CMYKcmyk(31.7%, 84.1%, 0%, 50.6%)
CIE-LABlab(23.62, 46.99, -45.55)
CIE-LCHlch(23.62, 65.44, 315.89°)
OKLaboklab(36.3% 0.1014 -0.1295)
OKLCHoklch(36.3% 0.165 308.1)
XYZxyz(7.8530, 3.9852, 20.0901)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56147E #3C7E14
analogous
#21147E #56147E #7E1471
triadic
#56147E #7E5614 #147E56
tetradic
#56147E #7E2114 #3C7E14 #14717E
square
#56147E #7E2114 #3C7E14 #14717E
split-complementary
#56147E #717E14 #147E21
monochromatic
#12041A #320C49 #56147E #7A1CB3 #9C2EDE

Accessibility & contrast

On white

11.69
#56147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56147E
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56147E#FFFFFF#000000##FFFFFF
##56147E1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#4F304A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56147e;
/* rgb */ color: rgb(86, 20, 126);
/* oklch */ color: oklch(36.3% 0.165 308.1);
Tailwind
colors: {
  custom: {
    50: '#8a5ba4',
    500: '#56147e',
    950: '#000000',
  },
}
SCSS
$custom: #56147e;
$custom-light: #8a5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#56147e",
  "rgb": {
    "r": 86,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 277.358,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.16451,
    "h": 308.1
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#56147E
secondary
#68B33A
accent
#EF387D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56147E

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

Preview Lab → · Contrast checker → · Palette generator →

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