#562D8D#562D8D

#562D8D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.151 H 299.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#562D8D
RGBrgb(86, 45, 141)
HSLhsl(266, 52%, 36%)
HSVhsv(266, 68%, 55%)
CMYKcmyk(39%, 68.1%, 0%, 44.7%)
CIE-LABlab(28.85, 39.41, -46.45)
CIE-LCHlch(28.85, 60.92, 310.31°)
OKLaboklab(40.38% 0.0735 -0.1323)
OKLCHoklch(40.38% 0.151 299.1)
XYZxyz(9.5827, 5.7782, 25.8046)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D8D #648D2D
analogous
#2D348D #562D8D #862D8D
triadic
#562D8D #8D562D #2D8D56
tetradic
#562D8D #8D2D34 #648D2D #2D8D86
square
#562D8D #8D2D34 #648D2D #2D8D86
split-complementary
#562D8D #8D862D #348D2D
monochromatic
#1D0F30 #3A1E5F #562D8D #723CBB #9366CE

Accessibility & contrast

On white

9.74
#562D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#562D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D8D
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D8D#FFFFFF#000000##FFFFFF
##562D8D1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#494359
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562d8d;
/* rgb */ color: rgb(86, 45, 141);
/* oklch */ color: oklch(40.4% 0.151 299.1);
Tailwind
colors: {
  custom: {
    50: '#8a69af',
    500: '#562d8d',
    950: '#000000',
  },
}
SCSS
$custom: #562d8d;
$custom-light: #8a69af;
$custom-dark: #000000;
JSON
{
  "hex": "#562d8d",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 265.625,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40382,
    "c": 0.15141,
    "h": 299.1
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#562D8D
secondary
#91B561
accent
#DB4D9E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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