#562A78#562A78

#562A78 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.131 H 307.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#562A78
RGBrgb(86, 42, 120)
HSLhsl(274, 48%, 32%)
HSVhsv(274, 65%, 47%)
CMYKcmyk(28.3%, 65%, 0%, 52.9%)
CIE-LABlab(26.71, 35.54, -36.75)
CIE-LCHlch(26.71, 51.12, 314.04°)
OKLaboklab(38.35% 0.0791 -0.1038)
OKLCHoklch(38.35% 0.131 307.3)
XYZxyz(8.0552, 4.9905, 18.3046)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A78 #4C782A
analogous
#2F2A78 #562A78 #782A73
triadic
#562A78 #78562A #2A7856
tetradic
#562A78 #782F2A #4C782A #2A7378
square
#562A78 #782F2A #4C782A #2A7378
split-complementary
#562A78 #73782A #2A782F
monochromatic
#150A1D #361A4B #562A78 #763AA5 #9558C5

Accessibility & contrast

On white

10.51
#562A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#562A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A78
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A78#FFFFFF#000000##FFFFFF
##562A781.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7A
Deuteranopia (green-blind)
#1C4076
Tritanopia (blue-blind)
#513A4D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #562a78;
/* rgb */ color: rgb(86, 42, 120);
/* oklch */ color: oklch(38.4% 0.131 307.3);
Tailwind
colors: {
  custom: {
    50: '#89669f',
    500: '#562a78',
    950: '#000000',
  },
}
SCSS
$custom: #562a78;
$custom-light: #89669f;
$custom-dark: #000000;
JSON
{
  "hex": "#562a78",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 273.846,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38351,
    "c": 0.13052,
    "h": 307.3
  },
  "luminance": 0.0499
}

Semantic roles & 50–950 ramp

primary
#562A78
secondary
#79AA54
accent
#D8508B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562A78

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

Preview Lab → · Contrast checker → · Palette generator →

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