#562688#562688

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

Color values

HEX#562688
RGBrgb(86, 38, 136)
HSLhsl(269, 56%, 34%)
HSVhsv(269, 72%, 53%)
CMYKcmyk(36.8%, 72.1%, 0%, 46.7%)
CIE-LABlab(27.14, 41.74, -46.12)
CIE-LCHlch(27.14, 62.20, 312.15°)
OKLaboklab(39.04% 0.0821 -0.1313)
OKLCHoklch(39.04% 0.155 302)
XYZxyz(8.9737, 5.1422, 23.8076)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562688 #588826
analogous
#262788 #562688 #872688
triadic
#562688 #885626 #268856
tetradic
#562688 #882627 #588826 #268887
square
#562688 #882627 #588826 #268887
split-complementary
#562688 #888726 #278826
monochromatic
#1A0B28 #381958 #562688 #7433B8 #9358D0

Accessibility & contrast

On white

10.35
#562688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#562688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562688
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562688#FFFFFF#000000##FFFFFF
##5626881.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#4C3D54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562688;
/* rgb */ color: rgb(86, 38, 136);
/* oklch */ color: oklch(39.0% 0.155 302.0);
Tailwind
colors: {
  custom: {
    50: '#8a64ab',
    500: '#562688',
    950: '#000000',
  },
}
SCSS
$custom: #562688;
$custom-light: #8a64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562688",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 136
  },
  "hsl": {
    "h": 269.388,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39036,
    "c": 0.15489,
    "h": 302
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#562688
secondary
#86B555
accent
#E04895
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562688

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

Preview Lab → · Contrast checker → · Palette generator →

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