#56117D#56117D

#56117D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.166 H 308.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#56117D
RGBrgb(86, 17, 125)
HSLhsl(278, 76%, 28%)
HSVhsv(278, 86%, 49%)
CMYKcmyk(31.2%, 86.4%, 0%, 51%)
CIE-LABlab(23.20, 47.73, -45.59)
CIE-LCHlch(23.20, 66.01, 316.31°)
OKLaboklab(35.99% 0.1039 -0.1297)
OKLCHoklch(35.99% 0.166 308.7)
XYZxyz(7.7391, 3.8601, 19.7354)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56117D #387D11
analogous
#20117D #56117D #7D116E
triadic
#56117D #7D5611 #117D56
tetradic
#56117D #7D2011 #387D11 #116E7D
square
#56117D #7D2011 #387D11 #116E7D
split-complementary
#56117D #6E7D11 #117D20
monochromatic
#13041B #310A47 #56117D #7B18B3 #9E27E2

Accessibility & contrast

On white

11.85
#56117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#56117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56117D
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56117D#FFFFFF#000000##FFFFFF
##56117D1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#502F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #56117d;
/* rgb */ color: rgb(86, 17, 125);
/* oklch */ color: oklch(36.0% 0.166 308.7);
Tailwind
colors: {
  custom: {
    50: '#8a5aa3',
    500: '#56117d',
    950: '#000000',
  },
}
SCSS
$custom: #56117d;
$custom-light: #8a5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#56117d",
  "rgb": {
    "r": 86,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 278.333,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35985,
    "c": 0.16617,
    "h": 308.7
  },
  "luminance": 0.0386
}

Semantic roles & 50–950 ramp

primary
#56117D
secondary
#64B337
accent
#F3357A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56117D

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

Preview Lab → · Contrast checker → · Palette generator →

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