#562EAB#562EAB

#562EAB is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.186 H 291.2°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#562EAB
RGBrgb(86, 46, 171)
HSLhsl(259, 58%, 43%)
HSVhsv(259, 73%, 67%)
CMYKcmyk(49.7%, 73.1%, 0%, 32.9%)
CIE-LABlab(31.51, 47.16, -60.36)
CIE-LCHlch(31.51, 76.60, 308.00°)
OKLaboklab(43.06% 0.0671 -0.1732)
OKLCHoklch(43.06% 0.186 291.2)
XYZxyz(12.1633, 6.8722, 39.2058)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EAB #83AB2E
analogous
#2E44AB #562EAB #952EAB
triadic
#562EAB #AB562E #2EAB56
tetradic
#562EAB #AB2E44 #83AB2E #2EAB95
square
#562EAB #AB2E44 #83AB2E #2EAB95
split-complementary
#562EAB #AB952E #44AB2E
monochromatic
#25144B #3E217B #562EAB #7348CE #9879DB

Accessibility & contrast

On white

8.84
#562EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#562EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562EAB
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562EAB#FFFFFF#000000##FFFFFF
##562EAB1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#3A4F6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562eab;
/* rgb */ color: rgb(86, 46, 171);
/* oklch */ color: oklch(43.1% 0.186 291.2);
Tailwind
colors: {
  custom: {
    50: '#8e6bc5',
    500: '#562eab',
    950: '#000000',
  },
}
SCSS
$custom: #562eab;
$custom-light: #8e6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#562eab",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 259.2,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43056,
    "c": 0.18578,
    "h": 291.2
  },
  "luminance": 0.06873
}

Semantic roles & 50–950 ramp

primary
#562EAB
secondary
#A9C372
accent
#E147B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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