#562A81#562A81

#562A81 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.141 H 303.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#562A81
RGBrgb(86, 42, 129)
HSLhsl(270, 51%, 34%)
HSVhsv(270, 67%, 51%)
CMYKcmyk(33.3%, 67.4%, 0%, 49.4%)
CIE-LABlab(27.35, 37.85, -41.39)
CIE-LCHlch(27.35, 56.09, 312.44°)
OKLaboklab(39.02% 0.0784 -0.1175)
OKLCHoklch(39.02% 0.141 303.7)
XYZxyz(8.6273, 5.2194, 21.3176)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A81 #55812A
analogous
#2A2A81 #562A81 #812A80
triadic
#562A81 #81562A #2A8156
tetradic
#562A81 #812A2A #55812A #2A8081
square
#562A81 #812A2A #55812A #2A8081
split-complementary
#562A81 #80812A #2A812A
monochromatic
#180C25 #371B53 #562A81 #7539AF #935CCA

Accessibility & contrast

On white

10.27
#562A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562A81
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A81#FFFFFF#000000##FFFFFF
##562A811.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#0D407F
Tritanopia (blue-blind)
#4E3D51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562a81;
/* rgb */ color: rgb(86, 42, 129);
/* oklch */ color: oklch(39.0% 0.141 303.7);
Tailwind
colors: {
  custom: {
    50: '#8967a6',
    500: '#562a81',
    950: '#000000',
  },
}
SCSS
$custom: #562a81;
$custom-light: #8967a6;
$custom-dark: #000000;
JSON
{
  "hex": "#562a81",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 129
  },
  "hsl": {
    "h": 270.345,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3902,
    "c": 0.14125,
    "h": 303.7
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#562A81
secondary
#83AF57
accent
#DA4D93
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A81

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

Preview Lab → · Contrast checker → · Palette generator →

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