#562D82#562D82

#562D82 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.138 H 302.7°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#562D82
RGBrgb(86, 45, 130)
HSLhsl(269, 49%, 34%)
HSVhsv(269, 65%, 51%)
CMYKcmyk(33.8%, 65.4%, 0%, 49%)
CIE-LABlab(28.03, 36.47, -40.93)
CIE-LCHlch(28.03, 54.82, 311.70°)
OKLaboklab(39.53% 0.0746 -0.1161)
OKLCHoklch(39.53% 0.138 302.7)
XYZxyz(8.8045, 5.4669, 21.7061)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D82 #59822D
analogous
#2D2F82 #562D82 #812D82
triadic
#562D82 #82562D #2D8256
tetradic
#562D82 #822D2F #59822D #2D8281
square
#562D82 #822D2F #59822D #2D8281
split-complementary
#562D82 #82812D #2F822D
monochromatic
#1A0E27 #381D55 #562D82 #743DAF #9361C8

Accessibility & contrast

On white

10.03
#562D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D82
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D82#FFFFFF#000000##FFFFFF
##562D821.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#124280
Tritanopia (blue-blind)
#4D3F53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562d82;
/* rgb */ color: rgb(86, 45, 130);
/* oklch */ color: oklch(39.5% 0.138 302.7);
Tailwind
colors: {
  custom: {
    50: '#8968a7',
    500: '#562d82',
    950: '#000000',
  },
}
SCSS
$custom: #562d82;
$custom-light: #8968a7;
$custom-dark: #000000;
JSON
{
  "hex": "#562d82",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 268.941,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39531,
    "c": 0.13804,
    "h": 302.7
  },
  "luminance": 0.05467
}

Semantic roles & 50–950 ramp

primary
#562D82
secondary
#87AF5C
accent
#D85096
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D82

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

Preview Lab → · Contrast checker → · Palette generator →

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