#562A72#562A72

#562A72 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.123 H 310.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#562A72
RGBrgb(86, 42, 114)
HSLhsl(277, 46%, 31%)
HSVhsv(277, 63%, 45%)
CMYKcmyk(24.6%, 63.2%, 0%, 55.3%)
CIE-LABlab(26.30, 34.04, -33.58)
CIE-LCHlch(26.30, 47.81, 315.39°)
OKLaboklab(37.92% 0.0792 -0.0945)
OKLCHoklch(37.92% 0.123 310)
XYZxyz(7.7024, 4.8494, 16.4466)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A72 #46722A
analogous
#322A72 #562A72 #722A6A
triadic
#562A72 #72562A #2A7256
tetradic
#562A72 #72322A #46722A #2A6A72
square
#562A72 #72322A #46722A #2A6A72
split-complementary
#562A72 #6A722A #2A7232
monochromatic
#130919 #341A45 #562A72 #783A9F #9756C1

Accessibility & contrast

On white

10.66
#562A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#562A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A72
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A72#FFFFFF#000000##FFFFFF
##562A721.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3C74
Deuteranopia (green-blind)
#223F70
Tritanopia (blue-blind)
#52384A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562a72;
/* rgb */ color: rgb(86, 42, 114);
/* oklch */ color: oklch(37.9% 0.123 310.0);
Tailwind
colors: {
  custom: {
    50: '#88669b',
    500: '#562a72',
    950: '#000000',
  },
}
SCSS
$custom: #562a72;
$custom-light: #88669b;
$custom-dark: #000000;
JSON
{
  "hex": "#562a72",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 276.667,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37925,
    "c": 0.12335,
    "h": 310
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#562A72
secondary
#73A454
accent
#D65285
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562A72

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

Preview Lab → · Contrast checker → · Palette generator →

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