#562771#562771

#562771 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.127 H 311.0°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#562771
RGBrgb(86, 39, 113)
HSLhsl(278, 49%, 30%)
HSVhsv(278, 65%, 44%)
CMYKcmyk(23.9%, 65.5%, 0%, 55.7%)
CIE-LABlab(25.63, 35.44, -34.02)
CIE-LCHlch(25.63, 49.12, 316.17°)
OKLaboklab(37.42% 0.0833 -0.0958)
OKLCHoklch(37.42% 0.127 311)
XYZxyz(7.5434, 4.6219, 16.1143)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562771 #427127
analogous
#312771 #562771 #712767
triadic
#562771 #715627 #277156
tetradic
#562771 #713127 #427127 #276771
square
#562771 #713127 #427127 #276771
split-complementary
#562771 #677127 #277131
monochromatic
#110817 #331744 #562771 #79379E #9950C3

Accessibility & contrast

On white

10.91
#562771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#562771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562771
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562771#FFFFFF#000000##FFFFFF
##5627711.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063A73
Deuteranopia (green-blind)
#1F3E6F
Tritanopia (blue-blind)
#533548
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #562771;
/* rgb */ color: rgb(86, 39, 113);
/* oklch */ color: oklch(37.4% 0.127 311.0);
Tailwind
colors: {
  custom: {
    50: '#88649a',
    500: '#562771',
    950: '#000000',
  },
}
SCSS
$custom: #562771;
$custom-light: #88649a;
$custom-dark: #000000;
JSON
{
  "hex": "#562771",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 278.108,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37416,
    "c": 0.12696,
    "h": 311
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#562771
secondary
#6FA350
accent
#D85081
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562771

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

Preview Lab → · Contrast checker → · Palette generator →

#562771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva