#561D97#561D97

#561D97 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.181 H 298.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#561D97
RGBrgb(86, 29, 151)
HSLhsl(268, 68%, 35%)
HSVhsv(268, 81%, 59%)
CMYKcmyk(43%, 80.8%, 0%, 40.8%)
CIE-LABlab(26.99, 49.63, -55.63)
CIE-LCHlch(26.99, 74.55, 311.74°)
OKLaboklab(39.33% 0.0868 -0.1592)
OKLCHoklch(39.33% 0.181 298.6)
XYZxyz(9.8616, 5.0914, 29.7353)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#561D97 #5E971D
analogous
#1D2197 #561D97 #931D97
triadic
#561D97 #97561D #1D9756
tetradic
#561D97 #971D21 #5E971D #1D9793
square
#561D97 #971D21 #5E971D #1D9793
split-complementary
#561D97 #97931D #21971D
monochromatic
#1C0930 #391364 #561D97 #7327CA #9351DE

Accessibility & contrast

On white

10.40
#561D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#561D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #561D97
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##561D97#FFFFFF#000000##FFFFFF
##561D971.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#463F5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #561d97;
/* rgb */ color: rgb(86, 29, 151);
/* oklch */ color: oklch(39.3% 0.181 298.6);
Tailwind
colors: {
  custom: {
    50: '#8c61b7',
    500: '#561d97',
    950: '#000000',
  },
}
SCSS
$custom: #561d97;
$custom-light: #8c61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#561d97",
  "rgb": {
    "r": 86,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 268.033,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39333,
    "c": 0.18136,
    "h": 298.6
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#561D97
secondary
#8CC04F
accent
#EB3D9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #561D97

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

Preview Lab → · Contrast checker → · Palette generator →

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