#562A97#562A97

#562A97 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.167 H 296.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#562A97
RGBrgb(86, 42, 151)
HSLhsl(264, 56%, 38%)
HSVhsv(264, 72%, 59%)
CMYKcmyk(43%, 72.2%, 0%, 40.8%)
CIE-LABlab(29.08, 43.69, -52.23)
CIE-LCHlch(29.08, 68.09, 309.92°)
OKLaboklab(40.8% 0.0751 -0.1493)
OKLCHoklch(40.8% 0.167 296.7)
XYZxyz(10.2502, 5.8685, 29.8648)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A97 #6B972A
analogous
#2A3497 #562A97 #8C2A97
triadic
#562A97 #97562A #2A9756
tetradic
#562A97 #972A34 #6B972A #2A978C
square
#562A97 #972A34 #6B972A #2A978C
split-complementary
#562A97 #978C2A #34972A
monochromatic
#1F0F37 #3B1D67 #562A97 #7137C7 #9367D5

Accessibility & contrast

On white

9.66
#562A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#562A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A97
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A97#FFFFFF#000000##FFFFFF
##562A971.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#45455D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562a97;
/* rgb */ color: rgb(86, 42, 151);
/* oklch */ color: oklch(40.8% 0.167 296.7);
Tailwind
colors: {
  custom: {
    50: '#8c67b6',
    500: '#562a97',
    950: '#000000',
  },
}
SCSS
$custom: #562a97;
$custom-light: #8c67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562a97",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 264.22,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40799,
    "c": 0.16716,
    "h": 296.7
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

primary
#562A97
secondary
#97BB62
accent
#E048A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562A97

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

Preview Lab → · Contrast checker → · Palette generator →

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