#562F87#562F87

#562F87 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.141 H 300.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#562F87
RGBrgb(86, 47, 135)
HSLhsl(267, 48%, 36%)
HSVhsv(267, 65%, 53%)
CMYKcmyk(36.3%, 65.2%, 0%, 47.1%)
CIE-LABlab(28.80, 36.69, -42.80)
CIE-LCHlch(28.80, 56.37, 310.60°)
OKLaboklab(40.21% 0.0718 -0.1216)
OKLCHoklch(40.21% 0.141 300.5)
XYZxyz(9.2264, 5.7607, 23.5428)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F87 #60872F
analogous
#2F3487 #562F87 #822F87
triadic
#562F87 #87562F #2F8756
tetradic
#562F87 #872F34 #60872F #2F8782
square
#562F87 #872F34 #60872F #2F8782
split-complementary
#562F87 #87822F #34872F
monochromatic
#1C0F2C #391F5A #562F87 #733FB4 #9366CA

Accessibility & contrast

On white

9.76
#562F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#562F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F87
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F87#FFFFFF#000000##FFFFFF
##562F871.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#0B4385
Tritanopia (blue-blind)
#4C4256
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562f87;
/* rgb */ color: rgb(86, 47, 135);
/* oklch */ color: oklch(40.2% 0.141 300.5);
Tailwind
colors: {
  custom: {
    50: '#8a6aab',
    500: '#562f87',
    950: '#000000',
  },
}
SCSS
$custom: #562f87;
$custom-light: #8a6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#562f87",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 266.591,
    "s": 48.352,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40207,
    "c": 0.14123,
    "h": 300.5
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

primary
#562F87
secondary
#8DB161
accent
#D8509C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F87

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

Preview Lab → · Contrast checker → · Palette generator →

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