#562E9A#562E9A

#562E9A is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.6% C 0.166 H 295.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#562E9A
RGBrgb(86, 46, 154)
HSLhsl(262, 54%, 39%)
HSVhsv(262, 70%, 60%)
CMYKcmyk(44.2%, 70.1%, 0%, 39.6%)
CIE-LABlab(30.07, 42.43, -52.44)
CIE-LCHlch(30.07, 67.46, 308.98°)
OKLaboklab(41.58% 0.0705 -0.15)
OKLCHoklch(41.58% 0.166 295.2)
XYZxyz(10.6459, 6.2653, 31.2140)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E9A #729A2E
analogous
#2E3C9A #562E9A #8C2E9A
triadic
#562E9A #9A562E #2E9A56
tetradic
#562E9A #9A2E3C #729A2E #2E9A8C
square
#562E9A #9A2E3C #729A2E #2E9A8C
split-complementary
#562E9A #9A8C2E #3C9A2E
monochromatic
#21123C #3C206B #562E9A #713FC6 #946FD4

Accessibility & contrast

On white

9.32
#562E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#562E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E9A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E9A#FFFFFF#000000##FFFFFF
##562E9A1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#444960
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562e9a;
/* rgb */ color: rgb(86, 46, 154);
/* oklch */ color: oklch(41.6% 0.166 295.2);
Tailwind
colors: {
  custom: {
    50: '#8c6ab9',
    500: '#562e9a',
    950: '#000000',
  },
}
SCSS
$custom: #562e9a;
$custom-light: #8c6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#562e9a",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 262.222,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41584,
    "c": 0.16571,
    "h": 295.2
  },
  "luminance": 0.06266
}

Semantic roles & 50–950 ramp

primary
#562E9A
secondary
#9DBB69
accent
#DD4AA7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0711
muted
#7D7A80

Preview Lab

Preview with #562E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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