#562B87#562B87

#562B87 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.147 H 301.4°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#562B87
RGBrgb(86, 43, 135)
HSLhsl(268, 52%, 35%)
HSVhsv(268, 68%, 53%)
CMYKcmyk(36.3%, 68.1%, 0%, 47.1%)
CIE-LABlab(27.99, 38.89, -44.10)
CIE-LCHlch(27.99, 58.80, 311.40°)
OKLaboklab(39.63% 0.0766 -0.1254)
OKLCHoklch(39.63% 0.147 301.4)
XYZxyz(9.0738, 5.4554, 23.4919)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B87 #5C872B
analogous
#2B2E87 #562B87 #842B87
triadic
#562B87 #87562B #2B8756
tetradic
#562B87 #872B2E #5C872B #2B8784
square
#562B87 #872B2E #5C872B #2B8784
split-complementary
#562B87 #87842B #2E872B
monochromatic
#1B0D2A #381C59 #562B87 #743AB5 #9360CC

Accessibility & contrast

On white

10.04
#562B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B87
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B87#FFFFFF#000000##FFFFFF
##562B871.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#004285
Tritanopia (blue-blind)
#4C4055
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562b87;
/* rgb */ color: rgb(86, 43, 135);
/* oklch */ color: oklch(39.6% 0.147 301.4);
Tailwind
colors: {
  custom: {
    50: '#8a67ab',
    500: '#562b87',
    950: '#000000',
  },
}
SCSS
$custom: #562b87;
$custom-light: #8a67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562b87",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 268.043,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39626,
    "c": 0.14698,
    "h": 301.4
  },
  "luminance": 0.05455
}

Semantic roles & 50–950 ramp

primary
#562B87
secondary
#8AB25B
accent
#DB4D99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562B87

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

Preview Lab → · Contrast checker → · Palette generator →

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