#56117E#56117E

#56117E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.167 H 308.3°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#56117E
RGBrgb(86, 17, 126)
HSLhsl(278, 76%, 28%)
HSVhsv(278, 87%, 49%)
CMYKcmyk(31.7%, 86.5%, 0%, 50.6%)
CIE-LABlab(23.29, 47.96, -46.09)
CIE-LCHlch(23.29, 66.51, 316.14°)
OKLaboklab(36.07% 0.1036 -0.1311)
OKLCHoklch(36.07% 0.167 308.3)
XYZxyz(7.8033, 3.8858, 20.0736)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56117E #397E11
analogous
#20117E #56117E #7E116F
triadic
#56117E #7E5611 #117E56
tetradic
#56117E #7E2011 #397E11 #116F7E
square
#56117E #7E2011 #397E11 #116F7E
split-complementary
#56117E #6F7E11 #117E20
monochromatic
#12041B #310A48 #56117E #7B18B4 #9E27E2

Accessibility & contrast

On white

11.82
#56117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#56117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56117E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56117E#FFFFFF#000000##FFFFFF
##56117E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#4F2F4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #56117e;
/* rgb */ color: rgb(86, 17, 126);
/* oklch */ color: oklch(36.1% 0.167 308.3);
Tailwind
colors: {
  custom: {
    50: '#8b5aa4',
    500: '#56117e',
    950: '#000000',
  },
}
SCSS
$custom: #56117e;
$custom-light: #8b5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#56117e",
  "rgb": {
    "r": 86,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 277.982,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36072,
    "c": 0.16711,
    "h": 308.3
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#56117E
secondary
#65B437
accent
#F3357B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56117E

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

Preview Lab → · Contrast checker → · Palette generator →

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