#562D8A#562D8A

#562D8A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.148 H 300.0°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#562D8A
RGBrgb(86, 45, 138)
HSLhsl(266, 51%, 36%)
HSVhsv(266, 67%, 54%)
CMYKcmyk(37.7%, 67.4%, 0%, 45.9%)
CIE-LABlab(28.62, 38.60, -44.96)
CIE-LCHlch(28.62, 59.26, 310.65°)
OKLaboklab(40.14% 0.0739 -0.128)
OKLCHoklch(40.14% 0.148 300)
XYZxyz(9.3625, 5.6901, 24.6449)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D8A #618A2D
analogous
#2D328A #562D8A #842D8A
triadic
#562D8A #8A562D #2D8A56
tetradic
#562D8A #8A2D32 #618A2D #2D8A84
square
#562D8A #8A2D32 #618A2D #2D8A84
split-complementary
#562D8A #8A842D #328A2D
monochromatic
#1C0F2E #391E5C #562D8A #733CB8 #9365CD

Accessibility & contrast

On white

9.82
#562D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#562D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D8A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D8A#FFFFFF#000000##FFFFFF
##562D8A1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#4A4257
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562d8a;
/* rgb */ color: rgb(86, 45, 138);
/* oklch */ color: oklch(40.1% 0.148 300.0);
Tailwind
colors: {
  custom: {
    50: '#8a69ad',
    500: '#562d8a',
    950: '#000000',
  },
}
SCSS
$custom: #562d8a;
$custom-light: #8a69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#562d8a",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 266.452,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40145,
    "c": 0.14778,
    "h": 300
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

primary
#562D8A
secondary
#8EB360
accent
#DA4D9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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