#562D9F#562D9F

#562D9F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.173 H 294.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#562D9F
RGBrgb(86, 45, 159)
HSLhsl(262, 56%, 40%)
HSVhsv(262, 72%, 62%)
CMYKcmyk(45.9%, 71.7%, 0%, 37.6%)
CIE-LABlab(30.30, 44.34, -55.11)
CIE-LCHlch(30.30, 70.73, 308.82°)
OKLaboklab(41.88% 0.0706 -0.1578)
OKLCHoklch(41.88% 0.173 294.1)
XYZxyz(11.0324, 6.3581, 33.4401)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D9F #769F2D
analogous
#2D3D9F #562D9F #8F2D9F
triadic
#562D9F #9F562D #2D9F56
tetradic
#562D9F #9F2D3D #769F2D #2D9F8F
square
#562D9F #9F2D3D #769F2D #2D9F8F
split-complementary
#562D9F #9F8F2D #3D9F2D
monochromatic
#221240 #3C206F #562D9F #7140C9 #9570D6

Accessibility & contrast

On white

9.24
#562D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#562D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D9F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D9F#FFFFFF#000000##FFFFFF
##562D9F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#414A63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562d9f;
/* rgb */ color: rgb(86, 45, 159);
/* oklch */ color: oklch(41.9% 0.173 294.1);
Tailwind
colors: {
  custom: {
    50: '#8c69bc',
    500: '#562d9f',
    950: '#000000',
  },
}
SCSS
$custom: #562d9f;
$custom-light: #8c69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#562d9f",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 261.579,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.41875,
    "c": 0.17288,
    "h": 294.1
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#562D9F
secondary
#A0BE6A
accent
#DF49A9
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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