#562B9E#562B9E

#562B9E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.174 H 294.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#562B9E
RGBrgb(86, 43, 158)
HSLhsl(262, 57%, 39%)
HSVhsv(262, 73%, 62%)
CMYKcmyk(45.6%, 72.8%, 0%, 38%)
CIE-LABlab(29.85, 45.09, -55.24)
CIE-LCHlch(29.85, 71.30, 309.22°)
OKLaboklab(41.53% 0.0727 -0.1582)
OKLCHoklch(41.53% 0.174 294.7)
XYZxyz(10.8715, 6.1745, 32.9601)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B9E #739E2B
analogous
#2B399E #562B9E #902B9E
triadic
#562B9E #9E562B #2B9E56
tetradic
#562B9E #9E2B39 #739E2B #2B9E90
square
#562B9E #9E2B39 #739E2B #2B9E90
split-complementary
#562B9E #9E902B #399E2B
monochromatic
#22113E #3C1E6E #562B9E #713CCA #946CD7

Accessibility & contrast

On white

9.40
#562B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#562B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B9E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B9E#FFFFFF#000000##FFFFFF
##562B9E1.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562b9e;
/* rgb */ color: rgb(86, 43, 158);
/* oklch */ color: oklch(41.5% 0.174 294.7);
Tailwind
colors: {
  custom: {
    50: '#8c68bc',
    500: '#562b9e',
    950: '#000000',
  },
}
SCSS
$custom: #562b9e;
$custom-light: #8c68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#562b9e",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 262.435,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41529,
    "c": 0.1741,
    "h": 294.7
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#562B9E
secondary
#9DBE67
accent
#E047A7
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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