#562C8C#562C8C

#562C8C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.152 H 299.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#562C8C
RGBrgb(86, 44, 140)
HSLhsl(266, 52%, 36%)
HSVhsv(266, 69%, 55%)
CMYKcmyk(38.6%, 68.6%, 0%, 45.1%)
CIE-LABlab(28.57, 39.68, -46.27)
CIE-LCHlch(28.57, 60.96, 310.62°)
OKLaboklab(40.16% 0.0748 -0.1318)
OKLCHoklch(40.16% 0.152 299.6)
XYZxyz(9.4709, 5.6731, 25.4019)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C8C #628C2C
analogous
#2C328C #562C8C #862C8C
triadic
#562C8C #8C562C #2C8C56
tetradic
#562C8C #8C2C32 #628C2C #2C8C86
square
#562C8C #8C2C32 #628C2C #2C8C86
split-complementary
#562C8C #8C862C #328C2C
monochromatic
#1D0F2F #391D5D #562C8C #733BBB #9364CE

Accessibility & contrast

On white

9.84
#562C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C8C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C8C#FFFFFF#000000##FFFFFF
##562C8C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#4A4258
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562c8c;
/* rgb */ color: rgb(86, 44, 140);
/* oklch */ color: oklch(40.2% 0.152 299.6);
Tailwind
colors: {
  custom: {
    50: '#8a68ae',
    500: '#562c8c',
    950: '#000000',
  },
}
SCSS
$custom: #562c8c;
$custom-light: #8a68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#562c8c",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 266.25,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40161,
    "c": 0.15158,
    "h": 299.6
  },
  "luminance": 0.05673
}

Semantic roles & 50–950 ramp

primary
#562C8C
secondary
#8FB55F
accent
#DC4C9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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