#562586#562586

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

Color values

HEX#562586
RGBrgb(86, 37, 134)
HSLhsl(270, 57%, 34%)
HSVhsv(270, 72%, 53%)
CMYKcmyk(35.8%, 72.4%, 0%, 47.5%)
CIE-LABlab(26.80, 41.73, -45.41)
CIE-LCHlch(26.80, 61.67, 312.58°)
OKLaboklab(38.75% 0.0835 -0.1293)
OKLCHoklch(38.75% 0.154 302.9)
XYZxyz(8.8014, 5.0228, 23.0554)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562586 #558625
analogous
#252586 #562586 #862585
triadic
#562586 #865625 #258656
tetradic
#562586 #862525 #558625 #258586
square
#562586 #862525 #558625 #258586
split-complementary
#562586 #858625 #258625
monochromatic
#180B26 #371856 #562586 #7532B6 #9355D0

Accessibility & contrast

On white

10.48
#562586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562586
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562586#FFFFFF#000000##FFFFFF
##5625861.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562586;
/* rgb */ color: rgb(86, 37, 134);
/* oklch */ color: oklch(38.7% 0.154 302.9);
Tailwind
colors: {
  custom: {
    50: '#8a64aa',
    500: '#562586',
    950: '#000000',
  },
}
SCSS
$custom: #562586;
$custom-light: #8a64aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562586",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 134
  },
  "hsl": {
    "h": 270.309,
    "s": 56.725,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38746,
    "c": 0.15391,
    "h": 302.9
  },
  "luminance": 0.05023
}

Semantic roles & 50–950 ramp

primary
#562586
secondary
#83B452
accent
#E04893
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562586

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

Preview Lab → · Contrast checker → · Palette generator →

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