#562787#562787

#562787 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.152 H 302.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#562787
RGBrgb(86, 39, 135)
HSLhsl(269, 55%, 34%)
HSVhsv(269, 71%, 53%)
CMYKcmyk(36.3%, 71.1%, 0%, 47.1%)
CIE-LABlab(27.24, 40.98, -45.33)
CIE-LCHlch(27.24, 61.11, 312.12°)
OKLaboklab(39.08% 0.0812 -0.129)
OKLCHoklch(39.08% 0.152 302.2)
XYZxyz(8.9354, 5.1787, 23.4458)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562787 #588727
analogous
#272887 #562787 #862787
triadic
#562787 #875627 #278756
tetradic
#562787 #872728 #588727 #278786
square
#562787 #872728 #588727 #278786
split-complementary
#562787 #878627 #288727
monochromatic
#1A0C28 #381958 #562787 #7435B6 #9359CF

Accessibility & contrast

On white

10.32
#562787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#562787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562787
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562787#FFFFFF#000000##FFFFFF
##5627871.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#4C3D54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562787;
/* rgb */ color: rgb(86, 39, 135);
/* oklch */ color: oklch(39.1% 0.152 302.2);
Tailwind
colors: {
  custom: {
    50: '#8a65ab',
    500: '#562787',
    950: '#000000',
  },
}
SCSS
$custom: #562787;
$custom-light: #8a65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562787",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 269.375,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.15244,
    "h": 302.2
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#562787
secondary
#86B456
accent
#DF4995
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562787

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

Preview Lab → · Contrast checker → · Palette generator →

#562787 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva