#56157B#56157B

#56157B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.161 H 309.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#56157B
RGBrgb(86, 21, 123)
HSLhsl(278, 71%, 28%)
HSVhsv(278, 83%, 48%)
CMYKcmyk(30.1%, 82.9%, 0%, 51.8%)
CIE-LABlab(23.49, 45.95, -43.86)
CIE-LCHlch(23.49, 63.52, 316.34°)
OKLaboklab(36.13% 0.1014 -0.1246)
OKLCHoklch(36.13% 0.161 309.1)
XYZxyz(7.6803, 3.9450, 19.0919)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56157B #3A7B15
analogous
#23157B #56157B #7B156D
triadic
#56157B #7B5615 #157B56
tetradic
#56157B #7B2315 #3A7B15 #156D7B
square
#56157B #7B2315 #3A7B15 #156D7B
split-complementary
#56157B #6D7B15 #157B23
monochromatic
#12041A #310C47 #56157B #7B1EAF #9D2FDB

Accessibility & contrast

On white

11.74
#56157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#56157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56157B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56157B#FFFFFF#000000##FFFFFF
##56157B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56157b;
/* rgb */ color: rgb(86, 21, 123);
/* oklch */ color: oklch(36.1% 0.161 309.1);
Tailwind
colors: {
  custom: {
    50: '#8a5ca2',
    500: '#56157b',
    950: '#000000',
  },
}
SCSS
$custom: #56157b;
$custom-light: #8a5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#56157b",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 278.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36131,
    "c": 0.16065,
    "h": 309.1
  },
  "luminance": 0.03945
}

Semantic roles & 50–950 ramp

primary
#56157B
secondary
#66B03B
accent
#EE3A7B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56157B

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

Preview Lab → · Contrast checker → · Palette generator →

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