#56157F#56157F

#56157F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.165 H 307.6°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#56157F
RGBrgb(86, 21, 127)
HSLhsl(277, 72%, 29%)
HSVhsv(277, 83%, 50%)
CMYKcmyk(32.3%, 83.5%, 0%, 50.2%)
CIE-LABlab(23.83, 46.87, -45.85)
CIE-LCHlch(23.83, 65.56, 315.63°)
OKLaboklab(36.47% 0.1003 -0.1304)
OKLCHoklch(36.47% 0.165 307.6)
XYZxyz(7.9359, 4.0472, 20.4377)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56157F #3E7F15
analogous
#21157F #56157F #7F1573
triadic
#56157F #7F5615 #157F56
tetradic
#56157F #7F2115 #3E7F15 #15737F
square
#56157F #7F2115 #3E7F15 #15737F
split-complementary
#56157F #737F15 #157F21
monochromatic
#12041A #320C4A #56157F #7A1EB4 #9B31DD

Accessibility & contrast

On white

11.61
#56157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#56157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56157F
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56157F#FFFFFF#000000##FFFFFF
##56157F1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4F314B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56157f;
/* rgb */ color: rgb(86, 21, 127);
/* oklch */ color: oklch(36.5% 0.165 307.6);
Tailwind
colors: {
  custom: {
    50: '#8a5ca5',
    500: '#56157f',
    950: '#000000',
  },
}
SCSS
$custom: #56157f;
$custom-light: #8a5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#56157f",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 276.792,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36472,
    "c": 0.16456,
    "h": 307.6
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#56157F
secondary
#6AB43C
accent
#EE397F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56157F

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

Preview Lab → · Contrast checker → · Palette generator →

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