#562D79#562D79

#562D79 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.127 H 306.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#562D79
RGBrgb(86, 45, 121)
HSLhsl(272, 46%, 33%)
HSVhsv(272, 63%, 47%)
CMYKcmyk(28.9%, 62.8%, 0%, 52.5%)
CIE-LABlab(27.40, 34.12, -36.28)
CIE-LCHlch(27.40, 49.80, 313.25°)
OKLaboklab(38.87% 0.0751 -0.1025)
OKLCHoklch(38.87% 0.127 306.2)
XYZxyz(8.2266, 5.2358, 18.6627)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D79 #50792D
analogous
#302D79 #562D79 #792D76
triadic
#562D79 #79562D #2D7956
tetradic
#562D79 #79302D #50792D #2D7679
square
#562D79 #79302D #50792D #2D7679
split-complementary
#562D79 #76792D #2D7930
monochromatic
#170C20 #361C4C #562D79 #763EA6 #945DC3

Accessibility & contrast

On white

10.26
#562D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D79
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D79#FFFFFF#000000##FFFFFF
##562D791.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093F7B
Deuteranopia (green-blind)
#1E4177
Tritanopia (blue-blind)
#503C4E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562d79;
/* rgb */ color: rgb(86, 45, 121);
/* oklch */ color: oklch(38.9% 0.127 306.2);
Tailwind
colors: {
  custom: {
    50: '#8868a0',
    500: '#562d79',
    950: '#000000',
  },
}
SCSS
$custom: #562d79;
$custom-light: #8868a0;
$custom-dark: #000000;
JSON
{
  "hex": "#562d79",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 272.368,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38873,
    "c": 0.12701,
    "h": 306.2
  },
  "luminance": 0.05236
}

Semantic roles & 50–950 ramp

primary
#562D79
secondary
#7EA958
accent
#D5528F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #562D79

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

Preview Lab → · Contrast checker → · Palette generator →

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