#562C9B#562C9B

#562C9B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.169 H 295.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#562C9B
RGBrgb(86, 44, 155)
HSLhsl(263, 56%, 39%)
HSVhsv(263, 72%, 61%)
CMYKcmyk(44.5%, 71.6%, 0%, 39.2%)
CIE-LABlab(29.78, 43.75, -53.53)
CIE-LCHlch(29.78, 69.14, 309.26°)
OKLaboklab(41.4% 0.0724 -0.1532)
OKLCHoklch(41.4% 0.169 295.3)
XYZxyz(10.6532, 6.1461, 31.6290)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C9B #719B2C
analogous
#2C399B #562C9B #8E2C9B
triadic
#562C9B #9B562C #2C9B56
tetradic
#562C9B #9B2C39 #719B2C #2C9B8E
square
#562C9B #9B2C39 #719B2C #2C9B8E
split-complementary
#562C9B #9B8E2C #399B2C
monochromatic
#21113C #3C1E6B #562C9B #713CC8 #946CD5

Accessibility & contrast

On white

9.42
#562C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#562C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C9B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C9B#FFFFFF#000000##FFFFFF
##562C9B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#434860
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562c9b;
/* rgb */ color: rgb(86, 44, 155);
/* oklch */ color: oklch(41.4% 0.169 295.3);
Tailwind
colors: {
  custom: {
    50: '#8c69b9',
    500: '#562c9b',
    950: '#000000',
  },
}
SCSS
$custom: #562c9b;
$custom-light: #8c69b9;
$custom-dark: #000000;
JSON
{
  "hex": "#562c9b",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 262.703,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.414,
    "c": 0.16939,
    "h": 295.3
  },
  "luminance": 0.06146
}

Semantic roles & 50–950 ramp

primary
#562C9B
secondary
#9CBC67
accent
#DF49A6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562C9B

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

Preview Lab → · Contrast checker → · Palette generator →

#562C9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva