#562B8A#562B8A

#562B8A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.151 H 300.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#562B8A
RGBrgb(86, 43, 138)
HSLhsl(267, 52%, 35%)
HSVhsv(267, 69%, 54%)
CMYKcmyk(37.7%, 68.8%, 0%, 45.9%)
CIE-LABlab(28.22, 39.68, -45.60)
CIE-LCHlch(28.22, 60.45, 311.03°)
OKLaboklab(39.86% 0.0762 -0.1298)
OKLCHoklch(39.86% 0.151 300.4)
XYZxyz(9.2880, 5.5411, 24.6200)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B8A #5F8A2B
analogous
#2B2F8A #562B8A #852B8A
triadic
#562B8A #8A562B #2B8A56
tetradic
#562B8A #8A2B2F #5F8A2B #2B8A85
square
#562B8A #8A2B2F #5F8A2B #2B8A85
split-complementary
#562B8A #8A852B #2F8A2B
monochromatic
#1C0E2D #391C5B #562B8A #733AB9 #9361CE

Accessibility & contrast

On white

9.96
#562B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#562B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B8A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B8A#FFFFFF#000000##FFFFFF
##562B8A1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562b8a;
/* rgb */ color: rgb(86, 43, 138);
/* oklch */ color: oklch(39.9% 0.151 300.4);
Tailwind
colors: {
  custom: {
    50: '#8a67ad',
    500: '#562b8a',
    950: '#000000',
  },
}
SCSS
$custom: #562b8a;
$custom-light: #8a67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#562b8a",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 267.158,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39862,
    "c": 0.15056,
    "h": 300.4
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#562B8A
secondary
#8DB45D
accent
#DC4C9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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