#562C8D#562C8D

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

Color values

HEX#562C8D
RGBrgb(86, 44, 141)
HSLhsl(266, 52%, 36%)
HSVhsv(266, 69%, 55%)
CMYKcmyk(39%, 68.8%, 0%, 44.7%)
CIE-LABlab(28.65, 39.95, -46.77)
CIE-LCHlch(28.65, 61.51, 310.51°)
OKLaboklab(40.24% 0.0747 -0.1333)
OKLCHoklch(40.24% 0.153 299.3)
XYZxyz(9.5450, 5.7028, 25.7920)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C8D #638D2C
analogous
#2C338D #562C8D #872C8D
triadic
#562C8D #8D562C #2C8D56
tetradic
#562C8D #8D2C33 #638D2C #2C8D87
square
#562C8D #8D2C33 #638D2C #2C8D87
split-complementary
#562C8D #8D872C #338D2C
monochromatic
#1D0F30 #3A1D5E #562C8D #723BBC #9365CF

Accessibility & contrast

On white

9.81
#562C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#562C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C8D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C8D#FFFFFF#000000##FFFFFF
##562C8D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562c8d;
/* rgb */ color: rgb(86, 44, 141);
/* oklch */ color: oklch(40.2% 0.153 299.3);
Tailwind
colors: {
  custom: {
    50: '#8a68af',
    500: '#562c8d',
    950: '#000000',
  },
}
SCSS
$custom: #562c8d;
$custom-light: #8a68af;
$custom-dark: #000000;
JSON
{
  "hex": "#562c8d",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 265.979,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40241,
    "c": 0.15278,
    "h": 299.3
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#562C8D
secondary
#90B560
accent
#DC4C9E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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