#56117F#56117F

#56117F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.168 H 307.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#56117F
RGBrgb(86, 17, 127)
HSLhsl(278, 76%, 28%)
HSVhsv(278, 87%, 50%)
CMYKcmyk(32.3%, 86.6%, 0%, 50.2%)
CIE-LABlab(23.38, 48.18, -46.58)
CIE-LCHlch(23.38, 67.01, 315.97°)
OKLaboklab(36.16% 0.1033 -0.1325)
OKLCHoklch(36.16% 0.168 307.9)
XYZxyz(7.8682, 3.9118, 20.4151)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56117F #3A7F11
analogous
#1F117F #56117F #7F1171
triadic
#56117F #7F5611 #117F56
tetradic
#56117F #7F1F11 #3A7F11 #11717F
square
#56117F #7F1F11 #3A7F11 #11717F
split-complementary
#56117F #717F11 #117F1F
monochromatic
#12041B #310A49 #56117F #7B18B5 #9D28E2

Accessibility & contrast

On white

11.78
#56117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56117F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56117F#FFFFFF#000000##FFFFFF
##56117F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#4F304A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56117f;
/* rgb */ color: rgb(86, 17, 127);
/* oklch */ color: oklch(36.2% 0.168 307.9);
Tailwind
colors: {
  custom: {
    50: '#8b5aa5',
    500: '#56117f',
    950: '#000000',
  },
}
SCSS
$custom: #56117f;
$custom-light: #8b5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#56117f",
  "rgb": {
    "r": 86,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 277.636,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3616,
    "c": 0.16805,
    "h": 307.9
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#56117F
secondary
#66B537
accent
#F3357C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56117F

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

Preview Lab → · Contrast checker → · Palette generator →

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