#56157C#56157C

#56157C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.162 H 308.7°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#56157C
RGBrgb(86, 21, 124)
HSLhsl(278, 71%, 28%)
HSVhsv(278, 83%, 49%)
CMYKcmyk(30.6%, 83.1%, 0%, 51.4%)
CIE-LABlab(23.57, 46.18, -44.36)
CIE-LCHlch(23.57, 64.03, 316.15°)
OKLaboklab(36.22% 0.1012 -0.126)
OKLCHoklch(36.22% 0.162 308.7)
XYZxyz(7.7433, 3.9701, 19.4233)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56157C #3B7C15
analogous
#22157C #56157C #7C156E
triadic
#56157C #7C5615 #157C56
tetradic
#56157C #7C2215 #3B7C15 #156E7C
square
#56157C #7C2215 #3B7C15 #156E7C
split-complementary
#56157C #6E7C15 #157C22
monochromatic
#12041A #320C48 #56157C #7A1EB0 #9C30DC

Accessibility & contrast

On white

11.71
#56157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56157C
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56157C#FFFFFF#000000##FFFFFF
##56157C1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#503049
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56157c;
/* rgb */ color: rgb(86, 21, 124);
/* oklch */ color: oklch(36.2% 0.162 308.7);
Tailwind
colors: {
  custom: {
    50: '#8a5ca3',
    500: '#56157c',
    950: '#000000',
  },
}
SCSS
$custom: #56157c;
$custom-light: #8a5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#56157c",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 277.864,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36215,
    "c": 0.16162,
    "h": 308.7
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

primary
#56157C
secondary
#67B13C
accent
#EE3A7C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56157C

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

Preview Lab → · Contrast checker → · Palette generator →

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