#562196#562196

#562196 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.176 H 298.4°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#562196
RGBrgb(86, 33, 150)
HSLhsl(267, 64%, 36%)
HSVhsv(267, 78%, 59%)
CMYKcmyk(42.7%, 78%, 0%, 41.2%)
CIE-LABlab(27.48, 47.70, -54.21)
CIE-LCHlch(27.48, 72.21, 311.34°)
OKLaboklab(39.65% 0.0838 -0.1551)
OKLCHoklch(39.65% 0.176 298.4)
XYZxyz(9.8852, 5.2680, 29.3443)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562196 #619621
analogous
#212796 #562196 #902196
triadic
#562196 #965621 #219656
tetradic
#562196 #962127 #619621 #219690
square
#562196 #962127 #619621 #219690
split-complementary
#562196 #969021 #279621
monochromatic
#1C0B32 #391664 #562196 #732CC8 #9357DA

Accessibility & contrast

On white

10.23
#562196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562196
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562196#FFFFFF#000000##FFFFFF
##5621961.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#46405B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562196;
/* rgb */ color: rgb(86, 33, 150);
/* oklch */ color: oklch(39.6% 0.176 298.4);
Tailwind
colors: {
  custom: {
    50: '#8c63b6',
    500: '#562196',
    950: '#000000',
  },
}
SCSS
$custom: #562196;
$custom-light: #8c63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562196",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 267.179,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39648,
    "c": 0.1763,
    "h": 298.4
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#562196
secondary
#8EBE55
accent
#E7419C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #562196

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

Preview Lab → · Contrast checker → · Palette generator →

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