#562D86#562D86

#562D86 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.143 H 301.3°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#562D86
RGBrgb(86, 45, 134)
HSLhsl(268, 50%, 35%)
HSVhsv(268, 66%, 53%)
CMYKcmyk(35.8%, 66.4%, 0%, 47.5%)
CIE-LABlab(28.32, 37.53, -42.96)
CIE-LCHlch(28.32, 57.04, 311.14°)
OKLaboklab(39.83% 0.0743 -0.1221)
OKLCHoklch(39.83% 0.143 301.3)
XYZxyz(9.0782, 5.5764, 23.1477)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D86 #5D862D
analogous
#2D3186 #562D86 #822D86
triadic
#562D86 #86562D #2D8656
tetradic
#562D86 #862D31 #5D862D #2D8682
square
#562D86 #862D31 #5D862D #2D8682
split-complementary
#562D86 #86822D #31862D
monochromatic
#1B0E2A #391E58 #562D86 #733CB4 #9363CB

Accessibility & contrast

On white

9.93
#562D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562D86
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D86#FFFFFF#000000##FFFFFF
##562D861.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#084284
Tritanopia (blue-blind)
#4C4155
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562d86;
/* rgb */ color: rgb(86, 45, 134);
/* oklch */ color: oklch(39.8% 0.143 301.3);
Tailwind
colors: {
  custom: {
    50: '#8a69aa',
    500: '#562d86',
    950: '#000000',
  },
}
SCSS
$custom: #562d86;
$custom-light: #8a69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562d86",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 267.64,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39834,
    "c": 0.14292,
    "h": 301.3
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#562D86
secondary
#8BB15E
accent
#D94F99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D86

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

Preview Lab → · Contrast checker → · Palette generator →

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