#562D89#562D89

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

Color values

HEX#562D89
RGBrgb(86, 45, 137)
HSLhsl(267, 51%, 36%)
HSVhsv(267, 67%, 54%)
CMYKcmyk(37.2%, 67.2%, 0%, 46.3%)
CIE-LABlab(28.54, 38.33, -44.46)
CIE-LCHlch(28.54, 58.70, 310.77°)
OKLaboklab(40.07% 0.074 -0.1265)
OKLCHoklch(40.07% 0.147 300.3)
XYZxyz(9.2904, 5.6613, 24.2653)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D89 #60892D
analogous
#2D3289 #562D89 #842D89
triadic
#562D89 #89562D #2D8956
tetradic
#562D89 #892D32 #60892D #2D8984
square
#562D89 #892D32 #60892D #2D8984
split-complementary
#562D89 #89842D #32892D
monochromatic
#1C0F2D #391E5B #562D89 #733CB7 #9364CC

Accessibility & contrast

On white

9.85
#562D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D89
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D89#FFFFFF#000000##FFFFFF
##562D891.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004387
Tritanopia (blue-blind)
#4B4257
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562d89;
/* rgb */ color: rgb(86, 45, 137);
/* oklch */ color: oklch(40.1% 0.147 300.3);
Tailwind
colors: {
  custom: {
    50: '#8a69ac',
    500: '#562d89',
    950: '#000000',
  },
}
SCSS
$custom: #562d89;
$custom-light: #8a69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#562d89",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 266.739,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40067,
    "c": 0.14657,
    "h": 300.3
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#562D89
secondary
#8DB35F
accent
#DA4E9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D89

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

Preview Lab → · Contrast checker → · Palette generator →

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