#56117C#56117C

#56117C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.165 H 309.1°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#56117C
RGBrgb(86, 17, 124)
HSLhsl(279, 76%, 28%)
HSVhsv(279, 86%, 49%)
CMYKcmyk(30.6%, 86.3%, 0%, 51.4%)
CIE-LABlab(23.12, 47.51, -45.10)
CIE-LCHlch(23.12, 65.51, 316.49°)
OKLaboklab(35.9% 0.1042 -0.1282)
OKLCHoklch(35.9% 0.165 309.1)
XYZxyz(7.6755, 3.8347, 19.4007)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56117C #377C11
analogous
#21117C #56117C #7C116C
triadic
#56117C #7C5611 #117C56
tetradic
#56117C #7C2111 #377C11 #116C7C
square
#56117C #7C2111 #377C11 #116C7C
split-complementary
#56117C #6C7C11 #117C21
monochromatic
#13041B #310A46 #56117C #7B18B2 #9F26E1

Accessibility & contrast

On white

11.88
#56117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56117C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56117C#FFFFFF#000000##FFFFFF
##56117C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#502E48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #56117c;
/* rgb */ color: rgb(86, 17, 124);
/* oklch */ color: oklch(35.9% 0.165 309.1);
Tailwind
colors: {
  custom: {
    50: '#8a5aa3',
    500: '#56117c',
    950: '#000000',
  },
}
SCSS
$custom: #56117c;
$custom-light: #8a5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#56117c",
  "rgb": {
    "r": 86,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 278.692,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35898,
    "c": 0.16521,
    "h": 309.1
  },
  "luminance": 0.03835
}

Semantic roles & 50–950 ramp

primary
#56117C
secondary
#62B237
accent
#F23579
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56117C

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

Preview Lab → · Contrast checker → · Palette generator →

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