#562B78#562B78

#562B78 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.129 H 307.1°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#562B78
RGBrgb(86, 43, 120)
HSLhsl(274, 47%, 32%)
HSVhsv(274, 64%, 47%)
CMYKcmyk(28.3%, 64.2%, 0%, 52.9%)
CIE-LABlab(26.91, 34.99, -36.42)
CIE-LCHlch(26.91, 50.50, 313.85°)
OKLaboklab(38.5% 0.0778 -0.1029)
OKLCHoklch(38.5% 0.129 307.1)
XYZxyz(8.0911, 5.0623, 18.3165)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B78 #4D782B
analogous
#2F2B78 #562B78 #782B74
triadic
#562B78 #78562B #2B7856
tetradic
#562B78 #782F2B #4D782B #2B7478
square
#562B78 #782F2B #4D782B #2B7478
split-complementary
#562B78 #74782B #2B782F
monochromatic
#150B1E #361B4B #562B78 #763BA5 #955AC4

Accessibility & contrast

On white

10.44
#562B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#562B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B78
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B78#FFFFFF#000000##FFFFFF
##562B781.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043E7A
Deuteranopia (green-blind)
#1D4076
Tritanopia (blue-blind)
#513A4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562b78;
/* rgb */ color: rgb(86, 43, 120);
/* oklch */ color: oklch(38.5% 0.129 307.1);
Tailwind
colors: {
  custom: {
    50: '#88679f',
    500: '#562b78',
    950: '#000000',
  },
}
SCSS
$custom: #562b78;
$custom-light: #88679f;
$custom-dark: #000000;
JSON
{
  "hex": "#562b78",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 273.506,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38499,
    "c": 0.12895,
    "h": 307.1
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#562B78
secondary
#7AAA55
accent
#D7518C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562B78

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

Preview Lab → · Contrast checker → · Palette generator →

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