#562A87#562A87

#562A87 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.148 H 301.6°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#562A87
RGBrgb(86, 42, 135)
HSLhsl(268, 53%, 35%)
HSVhsv(268, 69%, 53%)
CMYKcmyk(36.3%, 68.9%, 0%, 47.1%)
CIE-LABlab(27.80, 39.42, -44.42)
CIE-LCHlch(27.80, 59.38, 311.59°)
OKLaboklab(39.49% 0.0778 -0.1264)
OKLCHoklch(39.49% 0.148 301.6)
XYZxyz(9.0378, 5.3836, 23.4800)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A87 #5B872A
analogous
#2A2D87 #562A87 #842A87
triadic
#562A87 #87562A #2A8756
tetradic
#562A87 #872A2D #5B872A #2A8784
square
#562A87 #872A2D #5B872A #2A8784
split-complementary
#562A87 #87842A #2D872A
monochromatic
#1B0D2A #381B58 #562A87 #7439B6 #935ECD

Accessibility & contrast

On white

10.11
#562A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#562A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A87
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A87#FFFFFF#000000##FFFFFF
##562A871.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#4C3F55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562a87;
/* rgb */ color: rgb(86, 42, 135);
/* oklch */ color: oklch(39.5% 0.148 301.6);
Tailwind
colors: {
  custom: {
    50: '#8a67ab',
    500: '#562a87',
    950: '#000000',
  },
}
SCSS
$custom: #562a87;
$custom-light: #8a67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562a87",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 268.387,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39486,
    "c": 0.14837,
    "h": 301.6
  },
  "luminance": 0.05384
}

Semantic roles & 50–950 ramp

primary
#562A87
secondary
#89B35A
accent
#DC4C98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A87

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

Preview Lab → · Contrast checker → · Palette generator →

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