#562AB7#562AB7

#562AB7 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.204 H 289.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#562AB7
RGBrgb(86, 42, 183)
HSLhsl(259, 63%, 44%)
HSVhsv(259, 77%, 72%)
CMYKcmyk(53%, 77%, 0%, 28.2%)
CIE-LABlab(31.93, 52.42, -66.84)
CIE-LCHlch(31.93, 84.95, 308.10°)
OKLaboklab(43.68% 0.0673 -0.1922)
OKLCHoklch(43.68% 0.204 289.3)
XYZxyz(13.2105, 7.0526, 45.4558)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AB7 #8BB72A
analogous
#2A45B7 #562AB7 #9D2AB7
triadic
#562AB7 #B7562A #2AB756
tetradic
#562AB7 #B72A45 #8BB72A #2AB79D
square
#562AB7 #B72A45 #8BB72A #2AB79D
split-complementary
#562AB7 #B79D2A #45B72A
monochromatic
#271353 #3F1F85 #562AB7 #7549D5 #9B7BE1

Accessibility & contrast

On white

8.71
#562AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#562AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AB7
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AB7#FFFFFF#000000##FFFFFF
##562AB71.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#31526F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #562ab7;
/* rgb */ color: rgb(86, 42, 183);
/* oklch */ color: oklch(43.7% 0.204 289.3);
Tailwind
colors: {
  custom: {
    50: '#9069ce',
    500: '#562ab7',
    950: '#000000',
  },
}
SCSS
$custom: #562ab7;
$custom-light: #9069ce;
$custom-dark: #000000;
JSON
{
  "hex": "#562ab7",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 258.723,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4368,
    "c": 0.20363,
    "h": 289.3
  },
  "luminance": 0.07053
}

Semantic roles & 50–950 ramp

primary
#562AB7
secondary
#AEC974
accent
#E642B3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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