#562587#562587

#562587 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.155 H 302.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#562587
RGBrgb(86, 37, 135)
HSLhsl(270, 57%, 34%)
HSVhsv(270, 73%, 53%)
CMYKcmyk(36.3%, 72.6%, 0%, 47.1%)
CIE-LABlab(26.88, 41.98, -45.91)
CIE-LCHlch(26.88, 62.21, 312.44°)
OKLaboklab(38.83% 0.0834 -0.1307)
OKLCHoklch(38.83% 0.155 302.5)
XYZxyz(8.8715, 5.0508, 23.4245)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562587 #568725
analogous
#252587 #562587 #872587
triadic
#562587 #875625 #258756
tetradic
#562587 #872525 #568725 #258787
square
#562587 #872525 #568725 #258787
split-complementary
#562587 #878725 #258725
monochromatic
#190B27 #371857 #562587 #7532B7 #9356D1

Accessibility & contrast

On white

10.45
#562587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#562587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562587
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562587#FFFFFF#000000##FFFFFF
##5625871.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#4C3C53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562587;
/* rgb */ color: rgb(86, 37, 135);
/* oklch */ color: oklch(38.8% 0.155 302.5);
Tailwind
colors: {
  custom: {
    50: '#8a64ab',
    500: '#562587',
    950: '#000000',
  },
}
SCSS
$custom: #562587;
$custom-light: #8a64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562587",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 270,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38828,
    "c": 0.15505,
    "h": 302.5
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#562587
secondary
#84B553
accent
#E04894
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562587

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

Preview Lab → · Contrast checker → · Palette generator →

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