#562B96#562B96

#562B96 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.165 H 296.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#562B96
RGBrgb(86, 43, 150)
HSLhsl(264, 55%, 38%)
HSVhsv(264, 71%, 59%)
CMYKcmyk(42.7%, 71.3%, 0%, 41.2%)
CIE-LABlab(29.18, 42.91, -51.45)
CIE-LCHlch(29.18, 66.99, 309.83°)
OKLaboklab(40.85% 0.0743 -0.147)
OKLCHoklch(40.85% 0.165 296.8)
XYZxyz(10.2052, 5.9080, 29.4509)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B96 #6B962B
analogous
#2B3696 #562B96 #8B2B96
triadic
#562B96 #96562B #2B9656
tetradic
#562B96 #962B36 #6B962B #2B968B
square
#562B96 #962B36 #6B962B #2B968B
split-complementary
#562B96 #968B2B #36962B
monochromatic
#1F1037 #3B1D66 #562B96 #7139C6 #9368D4

Accessibility & contrast

On white

9.63
#562B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#562B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B96
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B96#FFFFFF#000000##FFFFFF
##562B961.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#46455D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562b96;
/* rgb */ color: rgb(86, 43, 150);
/* oklch */ color: oklch(40.8% 0.165 296.8);
Tailwind
colors: {
  custom: {
    50: '#8b68b6',
    500: '#562b96',
    950: '#000000',
  },
}
SCSS
$custom: #562b96;
$custom-light: #8b68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562b96",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 264.112,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40845,
    "c": 0.16475,
    "h": 296.8
  },
  "luminance": 0.05908
}

Semantic roles & 50–950 ramp

primary
#562B96
secondary
#97BA63
accent
#DF49A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562B96

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

Preview Lab → · Contrast checker → · Palette generator →

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