#562486#562486

#562486 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.155 H 303.0°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#562486
RGBrgb(86, 36, 134)
HSLhsl(271, 58%, 33%)
HSVhsv(271, 73%, 53%)
CMYKcmyk(35.8%, 73.1%, 0%, 47.5%)
CIE-LABlab(26.62, 42.22, -45.70)
CIE-LCHlch(26.62, 62.22, 312.73°)
OKLaboklab(38.62% 0.0846 -0.1301)
OKLCHoklch(38.62% 0.155 303)
XYZxyz(8.7707, 4.9614, 23.0452)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562486 #548624
analogous
#252486 #562486 #862485
triadic
#562486 #865624 #248656
tetradic
#562486 #862524 #548624 #248586
square
#562486 #862524 #548624 #248586
split-complementary
#562486 #858624 #248625
monochromatic
#180A26 #371756 #562486 #7531B6 #9353D1

Accessibility & contrast

On white

10.54
#562486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#562486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562486
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562486#FFFFFF#000000##FFFFFF
##5624861.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562486;
/* rgb */ color: rgb(86, 36, 134);
/* oklch */ color: oklch(38.6% 0.155 303.0);
Tailwind
colors: {
  custom: {
    50: '#8a63aa',
    500: '#562486',
    950: '#000000',
  },
}
SCSS
$custom: #562486;
$custom-light: #8a63aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562486",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 134
  },
  "hsl": {
    "h": 270.612,
    "s": 57.647,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38622,
    "c": 0.15519,
    "h": 303
  },
  "luminance": 0.04961
}

Semantic roles & 50–950 ramp

primary
#562486
secondary
#82B551
accent
#E14792
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562486

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

Preview Lab → · Contrast checker → · Palette generator →

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