#562D84#562D84

#562D84 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.140 H 302.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#562D84
RGBrgb(86, 45, 132)
HSLhsl(268, 49%, 35%)
HSVhsv(268, 66%, 52%)
CMYKcmyk(34.8%, 65.9%, 0%, 48.2%)
CIE-LABlab(28.17, 37.00, -41.95)
CIE-LCHlch(28.17, 55.93, 311.41°)
OKLaboklab(39.68% 0.0745 -0.1191)
OKLCHoklch(39.68% 0.14 302)
XYZxyz(8.9400, 5.5211, 22.4200)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D84 #5B842D
analogous
#2D2F84 #562D84 #822D84
triadic
#562D84 #84562D #2D8456
tetradic
#562D84 #842D2F #5B842D #2D8482
square
#562D84 #842D2F #5B842D #2D8482
split-complementary
#562D84 #84822D #2F842D
monochromatic
#1B0E29 #381D56 #562D84 #743DB2 #9362C9

Accessibility & contrast

On white

9.98
#562D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#562D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D84
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D84#FFFFFF#000000##FFFFFF
##562D841.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004287
Deuteranopia (green-blind)
#0D4282
Tritanopia (blue-blind)
#4D4054
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562d84;
/* rgb */ color: rgb(86, 45, 132);
/* oklch */ color: oklch(39.7% 0.140 302.0);
Tailwind
colors: {
  custom: {
    50: '#8968a8',
    500: '#562d84',
    950: '#000000',
  },
}
SCSS
$custom: #562d84;
$custom-light: #8968a8;
$custom-dark: #000000;
JSON
{
  "hex": "#562d84",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 268.276,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39682,
    "c": 0.14048,
    "h": 302
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#562D84
secondary
#89B05D
accent
#D94F98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D84

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

Preview Lab → · Contrast checker → · Palette generator →

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