#562296#562296

#562296 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.175 H 298.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#562296
RGBrgb(86, 34, 150)
HSLhsl(267, 63%, 36%)
HSVhsv(267, 77%, 59%)
CMYKcmyk(42.7%, 77.3%, 0%, 41.2%)
CIE-LABlab(27.64, 47.26, -53.96)
CIE-LCHlch(27.64, 71.73, 311.21°)
OKLaboklab(39.76% 0.0829 -0.1544)
OKLCHoklch(39.76% 0.175 298.2)
XYZxyz(9.9134, 5.3243, 29.3537)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562296 #629622
analogous
#222896 #562296 #902296
triadic
#562296 #965622 #229656
tetradic
#562296 #962228 #629622 #229690
square
#562296 #962228 #629622 #229690
split-complementary
#562296 #969022 #289622
monochromatic
#1D0B32 #391764 #562296 #732DC8 #9359D9

Accessibility & contrast

On white

10.17
#562296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562296
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562296#FFFFFF#000000##FFFFFF
##5622961.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562296;
/* rgb */ color: rgb(86, 34, 150);
/* oklch */ color: oklch(39.8% 0.175 298.2);
Tailwind
colors: {
  custom: {
    50: '#8c63b6',
    500: '#562296',
    950: '#000000',
  },
}
SCSS
$custom: #562296;
$custom-light: #8c63b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562296",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 266.897,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39757,
    "c": 0.17523,
    "h": 298.2
  },
  "luminance": 0.05324
}

Semantic roles & 50–950 ramp

primary
#562296
secondary
#8FBE56
accent
#E6429C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562296

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

Preview Lab → · Contrast checker → · Palette generator →

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