#562D9B#562D9B

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

Color values

HEX#562D9B
RGBrgb(86, 45, 155)
HSLhsl(262, 55%, 39%)
HSVhsv(262, 71%, 61%)
CMYKcmyk(44.5%, 71%, 0%, 39.2%)
CIE-LABlab(29.96, 43.24, -53.22)
CIE-LCHlch(29.96, 68.57, 309.09°)
OKLaboklab(41.53% 0.0713 -0.1523)
OKLCHoklch(41.53% 0.168 295.1)
XYZxyz(10.6909, 6.2215, 31.6416)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D9B #729B2D
analogous
#2D3B9B #562D9B #8D2D9B
triadic
#562D9B #9B562D #2D9B56
tetradic
#562D9B #9B2D3B #729B2D #2D9B8D
square
#562D9B #9B2D3B #729B2D #2D9B8D
split-complementary
#562D9B #9B8D2D #3B9B2D
monochromatic
#21113C #3C1F6C #562D9B #713EC7 #946ED5

Accessibility & contrast

On white

9.36
#562D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562D9B
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D9B#FFFFFF#000000##FFFFFF
##562D9B1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#434860
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562d9b;
/* rgb */ color: rgb(86, 45, 155);
/* oklch */ color: oklch(41.5% 0.168 295.1);
Tailwind
colors: {
  custom: {
    50: '#8c69b9',
    500: '#562d9b',
    950: '#000000',
  },
}
SCSS
$custom: #562d9b;
$custom-light: #8c69b9;
$custom-dark: #000000;
JSON
{
  "hex": "#562d9b",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 262.364,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41533,
    "c": 0.16815,
    "h": 295.1
  },
  "luminance": 0.06222
}

Semantic roles & 50–950 ramp

primary
#562D9B
secondary
#9DBC68
accent
#DE49A7
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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