#562AAA#562AAA

#562AAA is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.189 H 292.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#562AAA
RGBrgb(86, 42, 170)
HSLhsl(261, 60%, 42%)
HSVhsv(261, 75%, 67%)
CMYKcmyk(49.4%, 75.3%, 0%, 33.3%)
CIE-LABlab(30.73, 48.86, -61.05)
CIE-LCHlch(30.73, 78.20, 308.67°)
OKLaboklab(42.47% 0.0708 -0.1752)
OKLCHoklch(42.47% 0.189 292)
XYZxyz(11.9194, 6.5362, 38.6560)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AAA #7EAA2A
analogous
#2A3EAA #562AAA #962AAA
triadic
#562AAA #AA562A #2AAA56
tetradic
#562AAA #AA2A3E #7EAA2A #2AAA96
square
#562AAA #AA2A3E #7EAA2A #2AAA96
split-complementary
#562AAA #AA962A #3EAA2A
monochromatic
#241248 #3D1E79 #562AAA #7241D0 #9772DC

Accessibility & contrast

On white

9.10
#562AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#562AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AAA
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AAA#FFFFFF#000000##FFFFFF
##562AAA1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#3B4D68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562aaa;
/* rgb */ color: rgb(86, 42, 170);
/* oklch */ color: oklch(42.5% 0.189 292.0);
Tailwind
colors: {
  custom: {
    50: '#8e68c4',
    500: '#562aaa',
    950: '#000000',
  },
}
SCSS
$custom: #562aaa;
$custom-light: #8e68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#562aaa",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 260.625,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42473,
    "c": 0.18899,
    "h": 292
  },
  "luminance": 0.06537
}

Semantic roles & 50–950 ramp

primary
#562AAA
secondary
#A6C36C
accent
#E444AD
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #562AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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