#562D87#562D87

#562D87 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.144 H 301.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#562D87
RGBrgb(86, 45, 135)
HSLhsl(267, 50%, 35%)
HSVhsv(267, 67%, 53%)
CMYKcmyk(36.3%, 66.7%, 0%, 47.1%)
CIE-LABlab(28.39, 37.80, -43.46)
CIE-LCHlch(28.39, 57.60, 311.01°)
OKLaboklab(39.91% 0.0742 -0.1236)
OKLCHoklch(39.91% 0.144 301)
XYZxyz(9.1483, 5.6044, 23.5168)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D87 #5E872D
analogous
#2D3187 #562D87 #832D87
triadic
#562D87 #87562D #2D8756
tetradic
#562D87 #872D31 #5E872D #2D8783
square
#562D87 #872D31 #5E872D #2D8783
split-complementary
#562D87 #87832D #31872D
monochromatic
#1C0E2B #391E59 #562D87 #733CB5 #9363CB

Accessibility & contrast

On white

9.90
#562D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562D87
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D87#FFFFFF#000000##FFFFFF
##562D871.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#054285
Tritanopia (blue-blind)
#4C4156
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562d87;
/* rgb */ color: rgb(86, 45, 135);
/* oklch */ color: oklch(39.9% 0.144 301.0);
Tailwind
colors: {
  custom: {
    50: '#8a69ab',
    500: '#562d87',
    950: '#000000',
  },
}
SCSS
$custom: #562d87;
$custom-light: #8a69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562d87",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 267.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39911,
    "c": 0.14414,
    "h": 301
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#562D87
secondary
#8CB25E
accent
#DA4E9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D87

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

Preview Lab → · Contrast checker → · Palette generator →

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