#562B71#562B71

#562B71 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.121 H 310.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#562B71
RGBrgb(86, 43, 113)
HSLhsl(277, 45%, 31%)
HSVhsv(277, 62%, 44%)
CMYKcmyk(23.9%, 61.9%, 0%, 55.7%)
CIE-LABlab(26.44, 33.23, -32.71)
CIE-LCHlch(26.44, 46.63, 315.45°)
OKLaboklab(38.01% 0.0779 -0.092)
OKLCHoklch(38.01% 0.121 310.2)
XYZxyz(7.6817, 4.8986, 16.1604)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B71 #46712B
analogous
#332B71 #562B71 #712B69
triadic
#562B71 #71562B #2B7156
tetradic
#562B71 #71332B #46712B #2B6971
square
#562B71 #71332B #46712B #2B6971
split-complementary
#562B71 #69712B #2B7133
monochromatic
#130918 #341A45 #562B71 #783C9D #9757BF

Accessibility & contrast

On white

10.61
#562B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#562B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B71
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B71#FFFFFF#000000##FFFFFF
##562B711.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D73
Deuteranopia (green-blind)
#243F6F
Tritanopia (blue-blind)
#533849
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #562b71;
/* rgb */ color: rgb(86, 43, 113);
/* oklch */ color: oklch(38.0% 0.121 310.2);
Tailwind
colors: {
  custom: {
    50: '#88679a',
    500: '#562b71',
    950: '#000000',
  },
}
SCSS
$custom: #562b71;
$custom-light: #88679a;
$custom-dark: #000000;
JSON
{
  "hex": "#562b71",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 276.857,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38008,
    "c": 0.12053,
    "h": 310.2
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#562B71
secondary
#73A355
accent
#D55385
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562B71

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

Preview Lab → · Contrast checker → · Palette generator →

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