#562C8E#562C8E

#562C8E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.154 H 299.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#562C8E
RGBrgb(86, 44, 142)
HSLhsl(266, 53%, 36%)
HSVhsv(266, 69%, 56%)
CMYKcmyk(39.4%, 69%, 0%, 44.3%)
CIE-LABlab(28.73, 40.22, -47.26)
CIE-LCHlch(28.73, 62.06, 310.40°)
OKLaboklab(40.32% 0.0745 -0.1347)
OKLCHoklch(40.32% 0.154 299)
XYZxyz(9.6197, 5.7327, 26.1856)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C8E #648E2C
analogous
#2C338E #562C8E #872C8E
triadic
#562C8E #8E562C #2C8E56
tetradic
#562C8E #8E2C33 #648E2C #2C8E87
square
#562C8E #8E2C33 #648E2C #2C8E87
split-complementary
#562C8E #8E872C #338E2C
monochromatic
#1D0F31 #3A1E5F #562C8E #723ABD #9365CF

Accessibility & contrast

On white

9.78
#562C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#562C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C8E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C8E#FFFFFF#000000##FFFFFF
##562C8E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#494359
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562c8e;
/* rgb */ color: rgb(86, 44, 142);
/* oklch */ color: oklch(40.3% 0.154 299.0);
Tailwind
colors: {
  custom: {
    50: '#8a68b0',
    500: '#562c8e',
    950: '#000000',
  },
}
SCSS
$custom: #562c8e;
$custom-light: #8a68b0;
$custom-dark: #000000;
JSON
{
  "hex": "#562c8e",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 265.714,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40322,
    "c": 0.15397,
    "h": 299
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#562C8E
secondary
#91B660
accent
#DC4C9E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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