#562A9D#562A9D

#562A9D is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.174 H 295.1°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#562A9D
RGBrgb(86, 42, 157)
HSLhsl(263, 58%, 39%)
HSVhsv(263, 73%, 62%)
CMYKcmyk(45.2%, 73.2%, 0%, 38.4%)
CIE-LABlab(29.58, 45.32, -55.06)
CIE-LCHlch(29.58, 71.31, 309.45°)
OKLaboklab(41.32% 0.0739 -0.1577)
OKLCHoklch(41.32% 0.174 295.1)
XYZxyz(10.7499, 6.0684, 32.4967)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A9D #719D2A
analogous
#2A379D #562A9D #902A9D
triadic
#562A9D #9D562A #2A9D56
tetradic
#562A9D #9D2A37 #719D2A #2A9D90
square
#562A9D #9D2A37 #719D2A #2A9D90
split-complementary
#562A9D #9D902A #379D2A
monochromatic
#21103C #3C1D6D #562A9D #713ACA #946AD7

Accessibility & contrast

On white

9.49
#562A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#562A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A9D
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A9D#FFFFFF#000000##FFFFFF
##562A9D1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#424861
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562a9d;
/* rgb */ color: rgb(86, 42, 157);
/* oklch */ color: oklch(41.3% 0.174 295.1);
Tailwind
colors: {
  custom: {
    50: '#8c68bb',
    500: '#562a9d',
    950: '#000000',
  },
}
SCSS
$custom: #562a9d;
$custom-light: #8c68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#562a9d",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 262.957,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41315,
    "c": 0.17411,
    "h": 295.1
  },
  "luminance": 0.06069
}

Semantic roles & 50–950 ramp

primary
#562A9D
secondary
#9CBE65
accent
#E147A6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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