#561B8D#561B8D

#561B8D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.173 H 301.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#561B8D
RGBrgb(86, 27, 141)
HSLhsl(271, 68%, 33%)
HSVhsv(271, 81%, 55%)
CMYKcmyk(39%, 80.9%, 0%, 44.7%)
CIE-LABlab(25.82, 47.95, -51.38)
CIE-LCHlch(25.82, 70.27, 313.02°)
OKLaboklab(38.24% 0.0914 -0.1467)
OKLCHoklch(38.24% 0.173 301.9)
XYZxyz(9.0362, 4.6853, 25.6224)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#561B8D #528D1B
analogous
#1D1B8D #561B8D #8D1B8B
triadic
#561B8D #8D561B #1B8D56
tetradic
#561B8D #8D1D1B #528D1B #1B8B8D
square
#561B8D #8D1D1B #528D1B #1B8B8D
split-complementary
#561B8D #8B8D1B #1B8D1D
monochromatic
#170726 #37115A #561B8D #7525C0 #9447DC

Accessibility & contrast

On white

10.84
#561B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#561B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #561B8D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##561B8D#FFFFFF#000000##FFFFFF
##561B8D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#4A3A54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #561b8d;
/* rgb */ color: rgb(86, 27, 141);
/* oklch */ color: oklch(38.2% 0.173 301.9);
Tailwind
colors: {
  custom: {
    50: '#8b5faf',
    500: '#561b8d',
    950: '#000000',
  },
}
SCSS
$custom: #561b8d;
$custom-light: #8b5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#561b8d",
  "rgb": {
    "r": 86,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 271.053,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38238,
    "c": 0.17288,
    "h": 301.9
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

primary
#561B8D
secondary
#80BD46
accent
#EB3D91
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #561B8D

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

Preview Lab → · Contrast checker → · Palette generator →

#561B8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva