#562D8F#562D8F

#562D8F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.154 H 298.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#562D8F
RGBrgb(86, 45, 143)
HSLhsl(265, 52%, 37%)
HSVhsv(265, 69%, 56%)
CMYKcmyk(39.9%, 68.5%, 0%, 43.9%)
CIE-LABlab(29.00, 39.95, -47.43)
CIE-LCHlch(29.00, 62.02, 310.11°)
OKLaboklab(40.54% 0.0733 -0.1352)
OKLCHoklch(40.54% 0.154 298.5)
XYZxyz(9.7328, 5.8382, 26.5954)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D8F #668F2D
analogous
#2D358F #562D8F #872D8F
triadic
#562D8F #8F562D #2D8F56
tetradic
#562D8F #8F2D35 #668F2D #2D8F87
square
#562D8F #8F2D35 #668F2D #2D8F87
split-complementary
#562D8F #8F872D #358F2D
monochromatic
#1E1032 #3A1E60 #562D8F #723CBE #9367CF

Accessibility & contrast

On white

9.69
#562D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#562D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D8F
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D8F#FFFFFF#000000##FFFFFF
##562D8F1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#49445A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562d8f;
/* rgb */ color: rgb(86, 45, 143);
/* oklch */ color: oklch(40.5% 0.154 298.5);
Tailwind
colors: {
  custom: {
    50: '#8a69b0',
    500: '#562d8f',
    950: '#000000',
  },
}
SCSS
$custom: #562d8f;
$custom-light: #8a69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#562d8f",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 265.102,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40542,
    "c": 0.15382,
    "h": 298.5
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#562D8F
secondary
#93B662
accent
#DC4CA0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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