#562087#562087

#562087 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.161 H 303.3°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#562087
RGBrgb(86, 32, 135)
HSLhsl(271, 62%, 33%)
HSVhsv(271, 76%, 53%)
CMYKcmyk(36.3%, 76.3%, 0%, 47.1%)
CIE-LABlab(26.04, 44.35, -47.27)
CIE-LCHlch(26.04, 64.82, 313.17°)
OKLaboklab(38.24% 0.0885 -0.1347)
OKLCHoklch(38.24% 0.161 303.3)
XYZxyz(8.7264, 4.7607, 23.3762)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562087 #518720
analogous
#222087 #562087 #872085
triadic
#562087 #875620 #208756
tetradic
#562087 #872220 #518720 #208587
square
#562087 #872220 #518720 #208587
split-complementary
#562087 #858720 #208722
monochromatic
#170924 #361456 #562087 #762CB8 #944DD5

Accessibility & contrast

On white

10.76
#562087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#562087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562087
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562087#FFFFFF#000000##FFFFFF
##5620871.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#4C3A52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562087;
/* rgb */ color: rgb(86, 32, 135);
/* oklch */ color: oklch(38.2% 0.161 303.3);
Tailwind
colors: {
  custom: {
    50: '#8b61ab',
    500: '#562087',
    950: '#000000',
  },
}
SCSS
$custom: #562087;
$custom-light: #8b61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562087",
  "rgb": {
    "r": 86,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 271.456,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38235,
    "c": 0.16117,
    "h": 303.3
  },
  "luminance": 0.04761
}

Semantic roles & 50–950 ramp

primary
#562087
secondary
#7FB84B
accent
#E54390
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #562087

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

Preview Lab → · Contrast checker → · Palette generator →

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