#562A76#562A76

#562A76 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.128 H 308.2°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#562A76
RGBrgb(86, 42, 118)
HSLhsl(275, 48%, 31%)
HSVhsv(275, 64%, 46%)
CMYKcmyk(27.1%, 64.4%, 0%, 53.7%)
CIE-LABlab(26.57, 35.04, -35.70)
CIE-LCHlch(26.57, 50.02, 314.46°)
OKLaboklab(38.21% 0.0792 -0.1008)
OKLCHoklch(38.21% 0.128 308.2)
XYZxyz(7.9351, 4.9425, 17.6720)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A76 #4A762A
analogous
#302A76 #562A76 #762A70
triadic
#562A76 #76562A #2A7656
tetradic
#562A76 #76302A #4A762A #2A7076
square
#562A76 #76302A #4A762A #2A7076
split-complementary
#562A76 #70762A #2A7630
monochromatic
#140A1C #351A49 #562A76 #773AA3 #9657C3

Accessibility & contrast

On white

10.56
#562A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#562A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A76
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A76#FFFFFF#000000##FFFFFF
##562A761.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053D78
Deuteranopia (green-blind)
#1E3F74
Tritanopia (blue-blind)
#51394C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #562a76;
/* rgb */ color: rgb(86, 42, 118);
/* oklch */ color: oklch(38.2% 0.128 308.2);
Tailwind
colors: {
  custom: {
    50: '#88669e',
    500: '#562a76',
    950: '#000000',
  },
}
SCSS
$custom: #562a76;
$custom-light: #88669e;
$custom-dark: #000000;
JSON
{
  "hex": "#562a76",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 118
  },
  "hsl": {
    "h": 274.737,
    "s": 47.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38207,
    "c": 0.12813,
    "h": 308.2
  },
  "luminance": 0.04942
}

Semantic roles & 50–950 ramp

primary
#562A76
secondary
#77A854
accent
#D75189
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562A76

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

Preview Lab → · Contrast checker → · Palette generator →

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