#562687#562687

#562687 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.154 H 302.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#562687
RGBrgb(86, 38, 135)
HSLhsl(270, 56%, 34%)
HSVhsv(270, 72%, 53%)
CMYKcmyk(36.3%, 71.9%, 0%, 47.1%)
CIE-LABlab(27.06, 41.49, -45.62)
CIE-LCHlch(27.06, 61.66, 312.28°)
OKLaboklab(38.95% 0.0823 -0.1299)
OKLCHoklch(38.95% 0.154 302.4)
XYZxyz(8.9030, 5.1139, 23.4350)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562687 #578726
analogous
#262787 #562687 #872687
triadic
#562687 #875626 #268756
tetradic
#562687 #872627 #578726 #268787
square
#562687 #872627 #578726 #268787
split-complementary
#562687 #878726 #278726
monochromatic
#190B27 #381957 #562687 #7433B7 #9358D0

Accessibility & contrast

On white

10.38
#562687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#562687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562687
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562687#FFFFFF#000000##FFFFFF
##5626871.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562687;
/* rgb */ color: rgb(86, 38, 135);
/* oklch */ color: oklch(39.0% 0.154 302.4);
Tailwind
colors: {
  custom: {
    50: '#8a64ab',
    500: '#562687',
    950: '#000000',
  },
}
SCSS
$custom: #562687;
$custom-light: #8a64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562687",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 269.691,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38954,
    "c": 0.15376,
    "h": 302.4
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

primary
#562687
secondary
#85B554
accent
#DF4895
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562687

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

Preview Lab → · Contrast checker → · Palette generator →

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