#562A82#562A82

#562A82 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.142 H 303.4°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#562A82
RGBrgb(86, 42, 130)
HSLhsl(270, 51%, 34%)
HSVhsv(270, 68%, 51%)
CMYKcmyk(33.8%, 67.7%, 0%, 49%)
CIE-LABlab(27.42, 38.11, -41.90)
CIE-LCHlch(27.42, 56.64, 312.29°)
OKLaboklab(39.1% 0.0783 -0.119)
OKLCHoklch(39.1% 0.142 303.4)
XYZxyz(8.6941, 5.2461, 21.6693)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A82 #56822A
analogous
#2A2A82 #562A82 #822A82
triadic
#562A82 #82562A #2A8256
tetradic
#562A82 #822A2A #56822A #2A8282
square
#562A82 #822A2A #56822A #2A8282
split-complementary
#562A82 #82822A #2A822A
monochromatic
#190C25 #371B54 #562A82 #7539B0 #935CCA

Accessibility & contrast

On white

10.25
#562A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A82
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A82#FFFFFF#000000##FFFFFF
##562A821.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562a82;
/* rgb */ color: rgb(86, 42, 130);
/* oklch */ color: oklch(39.1% 0.142 303.4);
Tailwind
colors: {
  custom: {
    50: '#8967a7',
    500: '#562a82',
    950: '#000000',
  },
}
SCSS
$custom: #562a82;
$custom-light: #8967a7;
$custom-dark: #000000;
JSON
{
  "hex": "#562a82",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 270,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39097,
    "c": 0.14244,
    "h": 303.4
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#562A82
secondary
#84B058
accent
#DB4D94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A82

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

Preview Lab → · Contrast checker → · Palette generator →

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