#562D85#562D85

#562D85 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.142 H 301.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#562D85
RGBrgb(86, 45, 133)
HSLhsl(268, 49%, 35%)
HSVhsv(268, 66%, 52%)
CMYKcmyk(35.3%, 66.2%, 0%, 47.8%)
CIE-LABlab(28.24, 37.26, -42.45)
CIE-LCHlch(28.24, 56.49, 311.28°)
OKLaboklab(39.76% 0.0744 -0.1206)
OKLCHoklch(39.76% 0.142 301.7)
XYZxyz(9.0088, 5.5486, 22.7821)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D85 #5C852D
analogous
#2D3085 #562D85 #822D85
triadic
#562D85 #85562D #2D8556
tetradic
#562D85 #852D30 #5C852D #2D8582
square
#562D85 #852D30 #5C852D #2D8582
split-complementary
#562D85 #85822D #30852D
monochromatic
#1B0E2A #381E57 #562D85 #743CB3 #9362CA

Accessibility & contrast

On white

9.95
#562D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#562D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D85
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D85#FFFFFF#000000##FFFFFF
##562D851.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#0B4283
Tritanopia (blue-blind)
#4C4055
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562d85;
/* rgb */ color: rgb(86, 45, 133);
/* oklch */ color: oklch(39.8% 0.142 301.7);
Tailwind
colors: {
  custom: {
    50: '#8969a9',
    500: '#562d85',
    950: '#000000',
  },
}
SCSS
$custom: #562d85;
$custom-light: #8969a9;
$custom-dark: #000000;
JSON
{
  "hex": "#562d85",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 267.955,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39758,
    "c": 0.1417,
    "h": 301.7
  },
  "luminance": 0.05549
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562D85

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

Preview Lab → · Contrast checker → · Palette generator →

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