#56147C#56147C

#56147C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.163 H 308.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#56147C
RGBrgb(86, 20, 124)
HSLhsl(278, 72%, 28%)
HSVhsv(278, 84%, 49%)
CMYKcmyk(30.6%, 83.9%, 0%, 51.4%)
CIE-LABlab(23.45, 46.53, -44.55)
CIE-LCHlch(23.45, 64.42, 316.24°)
OKLaboklab(36.13% 0.102 -0.1266)
OKLCHoklch(36.13% 0.163 308.8)
XYZxyz(7.7252, 3.9341, 19.4173)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56147C #3A7C14
analogous
#22147C #56147C #7C146E
triadic
#56147C #7C5614 #147C56
tetradic
#56147C #7C2214 #3A7C14 #146E7C
square
#56147C #7C2214 #3A7C14 #146E7C
split-complementary
#56147C #6E7C14 #147C22
monochromatic
#12041A #310B47 #56147C #7B1DB1 #9D2DDD

Accessibility & contrast

On white

11.75
#56147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56147C
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56147C#FFFFFF#000000##FFFFFF
##56147C1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#502F49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56147c;
/* rgb */ color: rgb(86, 20, 124);
/* oklch */ color: oklch(36.1% 0.163 308.8);
Tailwind
colors: {
  custom: {
    50: '#8a5ba3',
    500: '#56147c',
    950: '#000000',
  },
}
SCSS
$custom: #56147c;
$custom-light: #8a5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#56147c",
  "rgb": {
    "r": 86,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 278.077,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36131,
    "c": 0.16257,
    "h": 308.8
  },
  "luminance": 0.03934
}

Semantic roles & 50–950 ramp

primary
#56147C
secondary
#66B23A
accent
#EF397B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56147C

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

Preview Lab → · Contrast checker → · Palette generator →

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