#562A9E#562A9E

#562A9E is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.175 H 294.9°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#562A9E
RGBrgb(86, 42, 158)
HSLhsl(263, 58%, 39%)
HSVhsv(263, 73%, 62%)
CMYKcmyk(45.6%, 73.4%, 0%, 38%)
CIE-LABlab(29.67, 45.59, -55.53)
CIE-LCHlch(29.67, 71.85, 309.38°)
OKLaboklab(41.4% 0.0737 -0.159)
OKLCHoklch(41.4% 0.175 294.9)
XYZxyz(10.8356, 6.1027, 32.9482)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A9E #729E2A
analogous
#2A389E #562A9E #902A9E
triadic
#562A9E #9E562A #2A9E56
tetradic
#562A9E #9E2A38 #729E2A #2A9E90
square
#562A9E #9E2A38 #729E2A #2A9E90
split-complementary
#562A9E #9E902A #389E2A
monochromatic
#21103D #3C1D6E #562A9E #713ACB #946BD8

Accessibility & contrast

On white

9.46
#562A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#562A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A9E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A9E#FFFFFF#000000##FFFFFF
##562A9E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562a9e;
/* rgb */ color: rgb(86, 42, 158);
/* oklch */ color: oklch(41.4% 0.175 294.9);
Tailwind
colors: {
  custom: {
    50: '#8c68bc',
    500: '#562a9e',
    950: '#000000',
  },
}
SCSS
$custom: #562a9e;
$custom-light: #8c68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#562a9e",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 262.759,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41402,
    "c": 0.17526,
    "h": 294.9
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

primary
#562A9E
secondary
#9DBE66
accent
#E147A7
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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