#56157D#56157D

#56157D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.163 H 308.3°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#56157D
RGBrgb(86, 21, 125)
HSLhsl(278, 71%, 29%)
HSVhsv(278, 83%, 49%)
CMYKcmyk(31.2%, 83.2%, 0%, 51%)
CIE-LABlab(23.66, 46.41, -44.85)
CIE-LCHlch(23.66, 64.54, 315.98°)
OKLaboklab(36.3% 0.1009 -0.1275)
OKLCHoklch(36.3% 0.163 308.3)
XYZxyz(7.8068, 3.9956, 19.7580)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56157D #3C7D15
analogous
#22157D #56157D #7D1570
triadic
#56157D #7D5615 #157D56
tetradic
#56157D #7D2215 #3C7D15 #15707D
square
#56157D #7D2215 #3C7D15 #15707D
split-complementary
#56157D #707D15 #157D22
monochromatic
#12041A #320C49 #56157D #7A1EB1 #9C30DC

Accessibility & contrast

On white

11.67
#56157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#56157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56157D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56157D#FFFFFF#000000##FFFFFF
##56157D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#50304A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56157d;
/* rgb */ color: rgb(86, 21, 125);
/* oklch */ color: oklch(36.3% 0.163 308.3);
Tailwind
colors: {
  custom: {
    50: '#8a5ca3',
    500: '#56157d',
    950: '#000000',
  },
}
SCSS
$custom: #56157d;
$custom-light: #8a5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#56157d",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 277.5,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.363,
    "c": 0.1626,
    "h": 308.3
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#56157D
secondary
#68B23C
accent
#EE3A7D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56157D

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

Preview Lab → · Contrast checker → · Palette generator →

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