#562B82#562B82

#562B82 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.141 H 303.2°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#562B82
RGBrgb(86, 43, 130)
HSLhsl(270, 50%, 34%)
HSVhsv(270, 67%, 51%)
CMYKcmyk(33.8%, 66.9%, 0%, 49%)
CIE-LABlab(27.62, 37.57, -41.58)
CIE-LCHlch(27.62, 56.04, 312.10°)
OKLaboklab(39.24% 0.0771 -0.118)
OKLCHoklch(39.24% 0.141 303.2)
XYZxyz(8.7300, 5.3179, 21.6813)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B82 #57822B
analogous
#2B2C82 #562B82 #822B82
triadic
#562B82 #82562B #2B8256
tetradic
#562B82 #822B2C #57822B #2B8282
square
#562B82 #822B2C #57822B #2B8282
split-complementary
#562B82 #82822B #2C822B
monochromatic
#190D26 #381C54 #562B82 #743AB0 #935ECA

Accessibility & contrast

On white

10.18
#562B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B82
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B82#FFFFFF#000000##FFFFFF
##562B821.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004085
Deuteranopia (green-blind)
#0D4180
Tritanopia (blue-blind)
#4D3E52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562b82;
/* rgb */ color: rgb(86, 43, 130);
/* oklch */ color: oklch(39.2% 0.141 303.2);
Tailwind
colors: {
  custom: {
    50: '#8967a7',
    500: '#562b82',
    950: '#000000',
  },
}
SCSS
$custom: #562b82;
$custom-light: #8967a7;
$custom-dark: #000000;
JSON
{
  "hex": "#562b82",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 130
  },
  "hsl": {
    "h": 269.655,
    "s": 50.289,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39239,
    "c": 0.141,
    "h": 303.2
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#562B82
secondary
#85B059
accent
#DA4E95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562B82

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

Preview Lab → · Contrast checker → · Palette generator →

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