#562AA5#562AA5

#562AA5 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.183 H 293.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#562AA5
RGBrgb(86, 42, 165)
HSLhsl(261, 59%, 41%)
HSVhsv(261, 75%, 65%)
CMYKcmyk(47.9%, 74.5%, 0%, 35.3%)
CIE-LABlab(30.28, 47.50, -58.77)
CIE-LCHlch(30.28, 75.57, 308.94°)
OKLaboklab(42.02% 0.072 -0.1685)
OKLCHoklch(42.02% 0.183 293.1)
XYZxyz(11.4554, 6.3506, 36.2122)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AA5 #79A52A
analogous
#2A3CA5 #562AA5 #932AA5
triadic
#562AA5 #A5562A #2AA556
tetradic
#562AA5 #A52A3C #79A52A #2AA593
square
#562AA5 #A52A3C #79A52A #2AA593
split-complementary
#562AA5 #A5932A #3CA52A
monochromatic
#231143 #3D1E74 #562AA5 #723ECE #956FDA

Accessibility & contrast

On white

9.25
#562AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#562AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AA5
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AA5#FFFFFF#000000##FFFFFF
##562AA51.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#3E4B65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562aa5;
/* rgb */ color: rgb(86, 42, 165);
/* oklch */ color: oklch(42.0% 0.183 293.1);
Tailwind
colors: {
  custom: {
    50: '#8d68c1',
    500: '#562aa5',
    950: '#000000',
  },
}
SCSS
$custom: #562aa5;
$custom-light: #8d68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#562aa5",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 261.463,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42022,
    "c": 0.1833,
    "h": 293.1
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#562AA5
secondary
#A2C169
accent
#E345AA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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