#562D9D#562D9D

#562D9D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.171 H 294.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#562D9D
RGBrgb(86, 45, 157)
HSLhsl(262, 55%, 40%)
HSVhsv(262, 71%, 62%)
CMYKcmyk(45.2%, 71.3%, 0%, 38.4%)
CIE-LABlab(30.13, 43.79, -54.17)
CIE-LCHlch(30.13, 69.66, 308.95°)
OKLaboklab(41.7% 0.071 -0.155)
OKLCHoklch(41.7% 0.171 294.6)
XYZxyz(10.8603, 6.2892, 32.5335)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D9D #749D2D
analogous
#2D3C9D #562D9D #8E2D9D
triadic
#562D9D #9D562D #2D9D56
tetradic
#562D9D #9D2D3C #749D2D #2D9D8E
square
#562D9D #9D2D3C #749D2D #2D9D8E
split-complementary
#562D9D #9D8E2D #3C9D2D
monochromatic
#22123E #3C1F6D #562D9D #713FC8 #946FD6

Accessibility & contrast

On white

9.30
#562D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#562D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D9D
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D9D#FFFFFF#000000##FFFFFF
##562D9D1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#424962
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562d9d;
/* rgb */ color: rgb(86, 45, 157);
/* oklch */ color: oklch(41.7% 0.171 294.6);
Tailwind
colors: {
  custom: {
    50: '#8c69bb',
    500: '#562d9d',
    950: '#000000',
  },
}
SCSS
$custom: #562d9d;
$custom-light: #8c69bb;
$custom-dark: #000000;
JSON
{
  "hex": "#562d9d",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 261.964,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41703,
    "c": 0.17052,
    "h": 294.6
  },
  "luminance": 0.0629
}

Semantic roles & 50–950 ramp

primary
#562D9D
secondary
#9EBD69
accent
#DF49A8
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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