#56157A#56157A

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

Color values

HEX#56157A
RGBrgb(86, 21, 122)
HSLhsl(279, 71%, 28%)
HSVhsv(279, 83%, 48%)
CMYKcmyk(29.5%, 82.8%, 0%, 52.2%)
CIE-LABlab(23.41, 45.73, -43.36)
CIE-LCHlch(23.41, 63.01, 316.52°)
OKLaboklab(36.05% 0.1017 -0.1231)
OKLCHoklch(36.05% 0.16 309.6)
XYZxyz(7.6181, 3.9201, 18.7639)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56157A #397A15
analogous
#24157A #56157A #7A156B
triadic
#56157A #7A5615 #157A56
tetradic
#56157A #7A2415 #397A15 #156B7A
square
#56157A #7A2415 #397A15 #156B7A
split-complementary
#56157A #6B7A15 #157A24
monochromatic
#12041A #310C46 #56157A #7B1EAE #9E2EDB

Accessibility & contrast

On white

11.77
#56157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56157A
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56157A#FFFFFF#000000##FFFFFF
##56157A1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56157a;
/* rgb */ color: rgb(86, 21, 122);
/* oklch */ color: oklch(36.0% 0.160 309.6);
Tailwind
colors: {
  custom: {
    50: '#8a5ca1',
    500: '#56157a',
    950: '#000000',
  },
}
SCSS
$custom: #56157a;
$custom-light: #8a5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#56157a",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 278.614,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.15967,
    "h": 309.6
  },
  "luminance": 0.0392
}

Semantic roles & 50–950 ramp

primary
#56157A
secondary
#65AF3B
accent
#ED3A7A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56157A

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

Preview Lab → · Contrast checker → · Palette generator →

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