#562A8D#562A8D

#562A8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.155 H 299.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#562A8D
RGBrgb(86, 42, 141)
HSLhsl(267, 54%, 36%)
HSVhsv(267, 70%, 55%)
CMYKcmyk(39%, 70.2%, 0%, 44.7%)
CIE-LABlab(28.27, 41.01, -47.39)
CIE-LCHlch(28.27, 62.67, 310.87°)
OKLaboklab(39.97% 0.0769 -0.1351)
OKLCHoklch(39.97% 0.155 299.7)
XYZxyz(9.4722, 5.5574, 25.7678)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A8D #618D2A
analogous
#2A2F8D #562A8D #872A8D
triadic
#562A8D #8D562A #2A8D56
tetradic
#562A8D #8D2A2F #618D2A #2A8D87
square
#562A8D #8D2A2F #618D2A #2A8D87
split-complementary
#562A8D #8D872A #2F8D2A
monochromatic
#1C0E2F #391C5E #562A8D #7338BC #9361D0

Accessibility & contrast

On white

9.95
#562A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#562A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A8D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A8D#FFFFFF#000000##FFFFFF
##562A8D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#494158
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562a8d;
/* rgb */ color: rgb(86, 42, 141);
/* oklch */ color: oklch(40.0% 0.155 299.7);
Tailwind
colors: {
  custom: {
    50: '#8a67af',
    500: '#562a8d',
    950: '#000000',
  },
}
SCSS
$custom: #562a8d;
$custom-light: #8a67af;
$custom-dark: #000000;
JSON
{
  "hex": "#562a8d",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 266.667,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39967,
    "c": 0.15546,
    "h": 299.7
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#562A8D
secondary
#8EB65D
accent
#DD4A9C
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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