#562E9E#562E9E

#562E9E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.170 H 294.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#562E9E
RGBrgb(86, 46, 158)
HSLhsl(261, 55%, 40%)
HSVhsv(261, 71%, 62%)
CMYKcmyk(45.6%, 70.9%, 0%, 38%)
CIE-LABlab(30.40, 43.54, -54.34)
CIE-LCHlch(30.40, 69.63, 308.71°)
OKLaboklab(41.92% 0.0698 -0.1555)
OKLCHoklch(41.92% 0.17 294.2)
XYZxyz(10.9846, 6.4007, 32.9978)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E9E #769E2E
analogous
#2E3E9E #562E9E #8E2E9E
triadic
#562E9E #9E562E #2E9E56
tetradic
#562E9E #9E2E3E #769E2E #2E9E8E
square
#562E9E #9E2E3E #769E2E #2E9E8E
split-complementary
#562E9E #9E8E2E #3E9E2E
monochromatic
#22123F #3C206F #562E9E #7141C8 #9571D6

Accessibility & contrast

On white

9.21
#562E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#562E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E9E
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E9E#FFFFFF#000000##FFFFFF
##562E9E1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#414A62
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562e9e;
/* rgb */ color: rgb(86, 46, 158);
/* oklch */ color: oklch(41.9% 0.170 294.2);
Tailwind
colors: {
  custom: {
    50: '#8c6abc',
    500: '#562e9e',
    950: '#000000',
  },
}
SCSS
$custom: #562e9e;
$custom-light: #8c6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#562e9e",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 261.429,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.41922,
    "c": 0.17048,
    "h": 294.2
  },
  "luminance": 0.06401
}

Semantic roles & 50–950 ramp

primary
#562E9E
secondary
#A0BD6B
accent
#DE4AA9
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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