#562B9A#562B9A

#562B9A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.169 H 295.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#562B9A
RGBrgb(86, 43, 154)
HSLhsl(263, 56%, 39%)
HSVhsv(263, 72%, 60%)
CMYKcmyk(44.2%, 72.1%, 0%, 39.6%)
CIE-LABlab(29.51, 44.00, -53.35)
CIE-LCHlch(29.51, 69.15, 309.51°)
OKLaboklab(41.18% 0.0735 -0.1526)
OKLCHoklch(41.18% 0.169 295.7)
XYZxyz(10.5328, 6.0390, 31.1763)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B9A #6F9A2B
analogous
#2B379A #562B9A #8D2B9A
triadic
#562B9A #9A562B #2B9A56
tetradic
#562B9A #9A2B37 #6F9A2B #2B9A8D
square
#562B9A #9A2B37 #6F9A2B #2B9A8D
split-complementary
#562B9A #9A8D2B #379A2B
monochromatic
#21103A #3B1E6A #562B9A #713AC8 #946AD5

Accessibility & contrast

On white

9.51
#562B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#562B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B9A
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B9A#FFFFFF#000000##FFFFFF
##562B9A1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#44475F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562b9a;
/* rgb */ color: rgb(86, 43, 154);
/* oklch */ color: oklch(41.2% 0.169 295.7);
Tailwind
colors: {
  custom: {
    50: '#8c68b9',
    500: '#562b9a',
    950: '#000000',
  },
}
SCSS
$custom: #562b9a;
$custom-light: #8c68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#562b9a",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 263.243,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41184,
    "c": 0.16943,
    "h": 295.7
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#562B9A
secondary
#9ABC65
accent
#E048A5
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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