#562C77#562C77

#562C77 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.126 H 307.3°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#562C77
RGBrgb(86, 44, 119)
HSLhsl(274, 46%, 32%)
HSVhsv(274, 63%, 47%)
CMYKcmyk(27.7%, 63%, 0%, 53.3%)
CIE-LABlab(27.05, 34.17, -35.56)
CIE-LCHlch(27.05, 49.32, 313.86°)
OKLaboklab(38.58% 0.0765 -0.1004)
OKLCHoklch(38.58% 0.126 307.3)
XYZxyz(8.0675, 5.1118, 18.0109)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C77 #4D772C
analogous
#312C77 #562C77 #772C73
triadic
#562C77 #77562C #2C7756
tetradic
#562C77 #77312C #4D772C #2C7377
square
#562C77 #77312C #4D772C #2C7377
split-complementary
#562C77 #73772C #2C7731
monochromatic
#150B1E #361B4A #562C77 #763DA4 #955BC2

Accessibility & contrast

On white

10.38
#562C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#562C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C77
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C77#FFFFFF#000000##FFFFFF
##562C771.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3E79
Deuteranopia (green-blind)
#1F4075
Tritanopia (blue-blind)
#513B4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562c77;
/* rgb */ color: rgb(86, 44, 119);
/* oklch */ color: oklch(38.6% 0.126 307.3);
Tailwind
colors: {
  custom: {
    50: '#88679f',
    500: '#562c77',
    950: '#000000',
  },
}
SCSS
$custom: #562c77;
$custom-light: #88679f;
$custom-dark: #000000;
JSON
{
  "hex": "#562c77",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 273.6,
    "s": 46.012,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38578,
    "c": 0.12616,
    "h": 307.3
  },
  "luminance": 0.05112
}

Semantic roles & 50–950 ramp

primary
#562C77
secondary
#7AA856
accent
#D6528C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562C77

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

Preview Lab → · Contrast checker → · Palette generator →

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