#562C7A#562C7A

#562C7A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.130 H 306.0°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#562C7A
RGBrgb(86, 44, 122)
HSLhsl(272, 47%, 33%)
HSVhsv(272, 64%, 48%)
CMYKcmyk(29.5%, 63.9%, 0%, 52.2%)
CIE-LABlab(27.26, 34.94, -37.13)
CIE-LCHlch(27.26, 50.99, 313.26°)
OKLaboklab(38.79% 0.0764 -0.105)
OKLCHoklch(38.79% 0.13 306)
XYZxyz(8.2505, 5.1850, 18.9747)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C7A #507A2C
analogous
#2F2C7A #562C7A #7A2C77
triadic
#562C7A #7A562C #2C7A56
tetradic
#562C7A #7A2F2C #507A2C #2C777A
square
#562C7A #7A2F2C #507A2C #2C777A
split-complementary
#562C7A #777A2C #2C7A2F
monochromatic
#170C20 #361C4D #562C7A #763CA7 #945CC4

Accessibility & contrast

On white

10.31
#562C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#562C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C7A
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C7A#FFFFFF#000000##FFFFFF
##562C7A1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7C
Deuteranopia (green-blind)
#1C4178
Tritanopia (blue-blind)
#503C4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562c7a;
/* rgb */ color: rgb(86, 44, 122);
/* oklch */ color: oklch(38.8% 0.130 306.0);
Tailwind
colors: {
  custom: {
    50: '#8968a1',
    500: '#562c7a',
    950: '#000000',
  },
}
SCSS
$custom: #562c7a;
$custom-light: #8968a1;
$custom-dark: #000000;
JSON
{
  "hex": "#562c7a",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 272.308,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38792,
    "c": 0.12981,
    "h": 306
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#562C7A
secondary
#7EAA57
accent
#D7518F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #562C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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