#56147B#56147B

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

Color values

HEX#56147B
RGBrgb(86, 20, 123)
HSLhsl(278, 72%, 28%)
HSVhsv(278, 84%, 48%)
CMYKcmyk(30.1%, 83.7%, 0%, 51.8%)
CIE-LABlab(23.37, 46.30, -44.05)
CIE-LCHlch(23.37, 63.91, 316.43°)
OKLaboklab(36.05% 0.1022 -0.1252)
OKLCHoklch(36.05% 0.162 309.2)
XYZxyz(7.6623, 3.9090, 19.0859)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56147B #397B14
analogous
#23147B #56147B #7B146C
triadic
#56147B #7B5614 #147B56
tetradic
#56147B #7B2314 #397B14 #146C7B
square
#56147B #7B2314 #397B14 #146C7B
split-complementary
#56147B #6C7B14 #147B23
monochromatic
#12041A #310B46 #56147B #7B1DB0 #9E2DDD

Accessibility & contrast

On white

11.79
#56147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56147B
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56147B#FFFFFF#000000##FFFFFF
##56147B1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#502F48
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56147b;
/* rgb */ color: rgb(86, 20, 123);
/* oklch */ color: oklch(36.0% 0.162 309.2);
Tailwind
colors: {
  custom: {
    50: '#8a5ba2',
    500: '#56147b',
    950: '#000000',
  },
}
SCSS
$custom: #56147b;
$custom-light: #8a5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#56147b",
  "rgb": {
    "r": 86,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 278.447,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.1616,
    "h": 309.2
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#56147B
secondary
#65B13A
accent
#EF397A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56147B

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

Preview Lab → · Contrast checker → · Palette generator →

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