#561F9E#561F9E

#561F9E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.187 H 296.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#561F9E
RGBrgb(86, 31, 158)
HSLhsl(266, 67%, 37%)
HSVhsv(266, 80%, 62%)
CMYKcmyk(45.6%, 80.4%, 0%, 38%)
CIE-LABlab(27.92, 50.59, -58.40)
CIE-LCHlch(27.92, 77.27, 310.90°)
OKLaboklab(40.17% 0.0831 -0.1674)
OKLCHoklch(40.17% 0.187 296.4)
XYZxyz(10.4976, 5.4268, 32.8355)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#561F9E #679E1F
analogous
#1F289E #561F9E #961F9E
triadic
#561F9E #9E561F #1F9E56
tetradic
#561F9E #9E1F28 #679E1F #1F9E96
square
#561F9E #9E1F28 #679E1F #1F9E96
split-complementary
#561F9E #9E961F #289E1F
monochromatic
#1E0B38 #3A156B #561F9E #7229D1 #9359DE

Accessibility & contrast

On white

10.07
#561F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#561F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #561F9E
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##561F9E#FFFFFF#000000##FFFFFF
##561F9E1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#42435F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #561f9e;
/* rgb */ color: rgb(86, 31, 158);
/* oklch */ color: oklch(40.2% 0.187 296.4);
Tailwind
colors: {
  custom: {
    50: '#8d62bc',
    500: '#561f9e',
    950: '#000000',
  },
}
SCSS
$custom: #561f9e;
$custom-light: #8d62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#561f9e",
  "rgb": {
    "r": 86,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 265.984,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40173,
    "c": 0.18684,
    "h": 296.4
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#561F9E
secondary
#94C256
accent
#EA3E9F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #561F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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