#562AA0#562AA0

#562AA0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.178 H 294.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#562AA0
RGBrgb(86, 42, 160)
HSLhsl(262, 58%, 40%)
HSVhsv(262, 74%, 63%)
CMYKcmyk(46.3%, 73.8%, 0%, 37.3%)
CIE-LABlab(29.84, 46.13, -56.46)
CIE-LCHlch(29.84, 72.91, 309.25°)
OKLaboklab(41.58% 0.0732 -0.1618)
OKLCHoklch(41.58% 0.178 294.4)
XYZxyz(11.0092, 6.1721, 33.8622)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AA0 #74A02A
analogous
#2A39A0 #562AA0 #912AA0
triadic
#562AA0 #A0562A #2AA056
tetradic
#562AA0 #A02A39 #74A02A #2AA091
square
#562AA0 #A02A39 #74A02A #2AA091
split-complementary
#562AA0 #A0912A #39A02A
monochromatic
#22113F #3C1D70 #562AA0 #713CCC #946CD8

Accessibility & contrast

On white

9.40
#562AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#562AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AA0
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AA0#FFFFFF#000000##FFFFFF
##562AA01.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#414962
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562aa0;
/* rgb */ color: rgb(86, 42, 160);
/* oklch */ color: oklch(41.6% 0.178 294.4);
Tailwind
colors: {
  custom: {
    50: '#8d68bd',
    500: '#562aa0',
    950: '#000000',
  },
}
SCSS
$custom: #562aa0;
$custom-light: #8d68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#562aa0",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 262.373,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41578,
    "c": 0.17757,
    "h": 294.4
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#562AA0
secondary
#9EBF67
accent
#E246A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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