#562C78#562C78

#562C78 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.127 H 306.9°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#562C78
RGBrgb(86, 44, 120)
HSLhsl(273, 46%, 32%)
HSVhsv(273, 63%, 47%)
CMYKcmyk(28.3%, 63.3%, 0%, 52.9%)
CIE-LABlab(27.12, 34.43, -36.09)
CIE-LCHlch(27.12, 49.88, 313.65°)
OKLaboklab(38.65% 0.0764 -0.1019)
OKLCHoklch(38.65% 0.127 306.9)
XYZxyz(8.1279, 5.1360, 18.3288)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C78 #4E782C
analogous
#302C78 #562C78 #782C74
triadic
#562C78 #78562C #2C7856
tetradic
#562C78 #78302C #4E782C #2C7478
square
#562C78 #78302C #4E782C #2C7478
split-complementary
#562C78 #74782C #2C7830
monochromatic
#160B1E #361C4B #562C78 #763CA5 #955BC3

Accessibility & contrast

On white

10.36
#562C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#562C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C78
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C78#FFFFFF#000000##FFFFFF
##562C781.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073F7A
Deuteranopia (green-blind)
#1E4076
Tritanopia (blue-blind)
#513B4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562c78;
/* rgb */ color: rgb(86, 44, 120);
/* oklch */ color: oklch(38.6% 0.127 306.9);
Tailwind
colors: {
  custom: {
    50: '#88679f',
    500: '#562c78',
    950: '#000000',
  },
}
SCSS
$custom: #562c78;
$custom-light: #88679f;
$custom-dark: #000000;
JSON
{
  "hex": "#562c78",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 273.158,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38649,
    "c": 0.12738,
    "h": 306.9
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#562C78
secondary
#7CA957
accent
#D6528D
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562C78

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

Preview Lab → · Contrast checker → · Palette generator →

#562C78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva