#562A71#562A71

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

Color values

HEX#562A71
RGBrgb(86, 42, 113)
HSLhsl(277, 46%, 30%)
HSVhsv(277, 63%, 44%)
CMYKcmyk(23.9%, 62.8%, 0%, 55.7%)
CIE-LABlab(26.24, 33.79, -33.05)
CIE-LCHlch(26.24, 47.26, 315.64°)
OKLaboklab(37.86% 0.0792 -0.093)
OKLCHoklch(37.86% 0.122 310.4)
XYZxyz(7.6458, 4.8268, 16.1485)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A71 #45712A
analogous
#322A71 #562A71 #712A68
triadic
#562A71 #71562A #2A7156
tetradic
#562A71 #71322A #45712A #2A6871
square
#562A71 #71322A #45712A #2A6871
split-complementary
#562A71 #68712A #2A7132
monochromatic
#120918 #341944 #562A71 #783B9E #9755C0

Accessibility & contrast

On white

10.68
#562A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562A71
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A71#FFFFFF#000000##FFFFFF
##562A711.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C73
Deuteranopia (green-blind)
#233F6F
Tritanopia (blue-blind)
#533749
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562a71;
/* rgb */ color: rgb(86, 42, 113);
/* oklch */ color: oklch(37.9% 0.122 310.4);
Tailwind
colors: {
  custom: {
    50: '#88669a',
    500: '#562a71',
    950: '#000000',
  },
}
SCSS
$custom: #562a71;
$custom-light: #88669a;
$custom-dark: #000000;
JSON
{
  "hex": "#562a71",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 277.183,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37856,
    "c": 0.12216,
    "h": 310.4
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#562A71
secondary
#72A354
accent
#D55284
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562A71

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

Preview Lab → · Contrast checker → · Palette generator →

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