#562C8A#562C8A

#562C8A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.149 H 300.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#562C8A
RGBrgb(86, 44, 138)
HSLhsl(267, 52%, 36%)
HSVhsv(267, 68%, 54%)
CMYKcmyk(37.7%, 68.1%, 0%, 45.9%)
CIE-LABlab(28.42, 39.15, -45.28)
CIE-LCHlch(28.42, 59.86, 310.84°)
OKLaboklab(40% 0.0751 -0.1289)
OKLCHoklch(40% 0.149 300.2)
XYZxyz(9.3248, 5.6147, 24.6323)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C8A #608A2C
analogous
#2C318A #562C8A #852C8A
triadic
#562C8A #8A562C #2C8A56
tetradic
#562C8A #8A2C31 #608A2C #2C8A85
square
#562C8A #8A2C31 #608A2C #2C8A85
split-complementary
#562C8A #8A852C #318A2C
monochromatic
#1C0E2D #391D5C #562C8A #733BB8 #9363CD

Accessibility & contrast

On white

9.89
#562C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#562C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C8A
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C8A#FFFFFF#000000##FFFFFF
##562C8A1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#4B4157
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562c8a;
/* rgb */ color: rgb(86, 44, 138);
/* oklch */ color: oklch(40.0% 0.149 300.2);
Tailwind
colors: {
  custom: {
    50: '#8a68ad',
    500: '#562c8a',
    950: '#000000',
  },
}
SCSS
$custom: #562c8a;
$custom-light: #8a68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#562c8a",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 266.809,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40002,
    "c": 0.14918,
    "h": 300.2
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#562C8A
secondary
#8DB45E
accent
#DB4D9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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