#562E78#562E78

#562E78 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.124 H 306.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#562E78
RGBrgb(86, 46, 120)
HSLhsl(272, 45%, 33%)
HSVhsv(272, 62%, 47%)
CMYKcmyk(28.3%, 61.7%, 0%, 52.9%)
CIE-LABlab(27.54, 33.29, -35.41)
CIE-LCHlch(27.54, 48.60, 313.23°)
OKLaboklab(38.96% 0.0737 -0.0999)
OKLCHoklch(38.96% 0.124 306.4)
XYZxyz(8.2042, 5.2886, 18.3542)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E78 #50782E
analogous
#312E78 #562E78 #782E75
triadic
#562E78 #78562E #2E7856
tetradic
#562E78 #78312E #50782E #2E7578
square
#562E78 #78312E #50782E #2E7578
split-complementary
#562E78 #75782E #2E7831
monochromatic
#170C20 #361D4C #562E78 #763FA4 #945FC2

Accessibility & contrast

On white

10.21
#562E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E78
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E78#FFFFFF#000000##FFFFFF
##562E781.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E407A
Deuteranopia (green-blind)
#214176
Tritanopia (blue-blind)
#503C4E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562e78;
/* rgb */ color: rgb(86, 46, 120);
/* oklch */ color: oklch(39.0% 0.124 306.4);
Tailwind
colors: {
  custom: {
    50: '#88699f',
    500: '#562e78',
    950: '#000000',
  },
}
SCSS
$custom: #562e78;
$custom-light: #88699f;
$custom-dark: #000000;
JSON
{
  "hex": "#562e78",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 272.432,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38957,
    "c": 0.12417,
    "h": 306.4
  },
  "luminance": 0.05288
}

Semantic roles & 50–950 ramp

primary
#562E78
secondary
#7EA85A
accent
#D4548F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562E78

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

Preview Lab → · Contrast checker → · Palette generator →

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