#562487#562487

#562487 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.156 H 302.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#562487
RGBrgb(86, 36, 135)
HSLhsl(270, 58%, 34%)
HSVhsv(270, 73%, 53%)
CMYKcmyk(36.3%, 73.3%, 0%, 47.1%)
CIE-LABlab(26.70, 42.47, -46.19)
CIE-LCHlch(26.70, 62.75, 312.60°)
OKLaboklab(38.7% 0.0844 -0.1316)
OKLCHoklch(38.7% 0.156 302.7)
XYZxyz(8.8408, 4.9894, 23.4143)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562487 #558724
analogous
#242487 #562487 #872486
triadic
#562487 #875624 #248756
tetradic
#562487 #872424 #558724 #248687
square
#562487 #872424 #558724 #248687
split-complementary
#562487 #868724 #248724
monochromatic
#180A26 #371757 #562487 #7531B7 #9354D1

Accessibility & contrast

On white

10.51
#562487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#562487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562487
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562487#FFFFFF#000000##FFFFFF
##5624871.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#4C3C53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #562487;
/* rgb */ color: rgb(86, 36, 135);
/* oklch */ color: oklch(38.7% 0.156 302.7);
Tailwind
colors: {
  custom: {
    50: '#8a63ab',
    500: '#562487',
    950: '#000000',
  },
}
SCSS
$custom: #562487;
$custom-light: #8a63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562487",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 270.303,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.15632,
    "h": 302.7
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#562487
secondary
#83B551
accent
#E14793
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562487

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

Preview Lab → · Contrast checker → · Palette generator →

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