#562788#562788

#562788 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.154 H 301.8°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#562788
RGBrgb(86, 39, 136)
HSLhsl(269, 55%, 34%)
HSVhsv(269, 71%, 53%)
CMYKcmyk(36.8%, 71.3%, 0%, 46.7%)
CIE-LABlab(27.32, 41.24, -45.82)
CIE-LCHlch(27.32, 61.65, 311.99°)
OKLaboklab(39.16% 0.081 -0.1305)
OKLCHoklch(39.16% 0.154 301.8)
XYZxyz(9.0061, 5.2070, 23.8184)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562788 #598827
analogous
#272988 #562788 #872788
triadic
#562788 #885627 #278856
tetradic
#562788 #882729 #598827 #278887
square
#562788 #882729 #598827 #278887
split-complementary
#562788 #888727 #298827
monochromatic
#1A0C29 #381958 #562788 #7435B8 #935AD0

Accessibility & contrast

On white

10.29
#562788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#562788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562788
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562788#FFFFFF#000000##FFFFFF
##5627881.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#4B3E54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562788;
/* rgb */ color: rgb(86, 39, 136);
/* oklch */ color: oklch(39.2% 0.154 301.8);
Tailwind
colors: {
  custom: {
    50: '#8a65ab',
    500: '#562788',
    950: '#000000',
  },
}
SCSS
$custom: #562788;
$custom-light: #8a65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562788",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 269.072,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39164,
    "c": 0.1536,
    "h": 301.8
  },
  "luminance": 0.05207
}

Semantic roles & 50–950 ramp

primary
#562788
secondary
#87B556
accent
#DF4996
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562788

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

Preview Lab → · Contrast checker → · Palette generator →

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