#562D78#562D78

#562D78 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.126 H 306.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#562D78
RGBrgb(86, 45, 120)
HSLhsl(273, 45%, 32%)
HSVhsv(273, 63%, 47%)
CMYKcmyk(28.3%, 62.5%, 0%, 52.9%)
CIE-LABlab(27.33, 33.86, -35.75)
CIE-LCHlch(27.33, 49.24, 313.45°)
OKLaboklab(38.8% 0.0751 -0.1009)
OKLCHoklch(38.8% 0.126 306.6)
XYZxyz(8.1656, 5.2114, 18.3414)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D78 #4F782D
analogous
#302D78 #562D78 #782D75
triadic
#562D78 #78562D #2D7856
tetradic
#562D78 #78302D #4F782D #2D7578
square
#562D78 #78302D #4F782D #2D7578
split-complementary
#562D78 #75782D #2D7830
monochromatic
#160C1F #361C4B #562D78 #763EA5 #945DC2

Accessibility & contrast

On white

10.28
#562D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#562D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D78
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D78#FFFFFF#000000##FFFFFF
##562D781.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3F7A
Deuteranopia (green-blind)
#1F4176
Tritanopia (blue-blind)
#503C4E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562d78;
/* rgb */ color: rgb(86, 45, 120);
/* oklch */ color: oklch(38.8% 0.126 306.6);
Tailwind
colors: {
  custom: {
    50: '#88689f',
    500: '#562d78',
    950: '#000000',
  },
}
SCSS
$custom: #562d78;
$custom-light: #88689f;
$custom-dark: #000000;
JSON
{
  "hex": "#562d78",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 272.8,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38802,
    "c": 0.12578,
    "h": 306.6
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#562D78
secondary
#7DA958
accent
#D5538E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562D78

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

Preview Lab → · Contrast checker → · Palette generator →

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