#562AA4#562AA4

#562AA4 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.182 H 293.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#562AA4
RGBrgb(86, 42, 164)
HSLhsl(262, 59%, 40%)
HSVhsv(262, 74%, 64%)
CMYKcmyk(47.6%, 74.4%, 0%, 35.7%)
CIE-LABlab(30.19, 47.22, -58.31)
CIE-LCHlch(30.19, 75.04, 309.00°)
OKLaboklab(41.93% 0.0723 -0.1672)
OKLCHoklch(41.93% 0.182 293.4)
XYZxyz(11.3647, 6.3143, 35.7348)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AA4 #78A42A
analogous
#2A3BA4 #562AA4 #932AA4
triadic
#562AA4 #A4562A #2AA456
tetradic
#562AA4 #A42A3B #78A42A #2AA493
square
#562AA4 #A42A3B #78A42A #2AA493
split-complementary
#562AA4 #A4932A #3BA42A
monochromatic
#231143 #3C1E73 #562AA4 #723ECD #956EDA

Accessibility & contrast

On white

9.28
#562AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#562AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AA4
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AA4#FFFFFF#000000##FFFFFF
##562AA41.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#3E4A65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562aa4;
/* rgb */ color: rgb(86, 42, 164);
/* oklch */ color: oklch(41.9% 0.182 293.4);
Tailwind
colors: {
  custom: {
    50: '#8d68c0',
    500: '#562aa4',
    950: '#000000',
  },
}
SCSS
$custom: #562aa4;
$custom-light: #8d68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#562aa4",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 261.639,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41932,
    "c": 0.18215,
    "h": 293.4
  },
  "luminance": 0.06315
}

Semantic roles & 50–950 ramp

primary
#562AA4
secondary
#A1C169
accent
#E245AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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