#562AA3#562AA3

#562AA3 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.181 H 293.6°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#562AA3
RGBrgb(86, 42, 163)
HSLhsl(262, 59%, 40%)
HSVhsv(262, 74%, 64%)
CMYKcmyk(47.2%, 74.2%, 0%, 36.1%)
CIE-LABlab(30.10, 46.95, -57.85)
CIE-LCHlch(30.10, 74.51, 309.06°)
OKLaboklab(41.84% 0.0725 -0.1658)
OKLCHoklch(41.84% 0.181 293.6)
XYZxyz(11.2748, 6.2784, 35.2610)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AA3 #77A32A
analogous
#2A3BA3 #562AA3 #922AA3
triadic
#562AA3 #A3562A #2AA356
tetradic
#562AA3 #A32A3B #77A32A #2AA392
square
#562AA3 #A32A3B #77A32A #2AA392
split-complementary
#562AA3 #A3922A #3BA32A
monochromatic
#231142 #3C1D72 #562AA3 #713DCD #956EDA

Accessibility & contrast

On white

9.31
#562AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562AA3
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AA3#FFFFFF#000000##FFFFFF
##562AA31.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#3F4A64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562aa3;
/* rgb */ color: rgb(86, 42, 163);
/* oklch */ color: oklch(41.8% 0.181 293.6);
Tailwind
colors: {
  custom: {
    50: '#8d68bf',
    500: '#562aa3',
    950: '#000000',
  },
}
SCSS
$custom: #562aa3;
$custom-light: #8d68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#562aa3",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 261.818,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41843,
    "c": 0.18101,
    "h": 293.6
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#562AA3
secondary
#A0C068
accent
#E246A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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