#562C87#562C87

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

Color values

HEX#562C87
RGBrgb(86, 44, 135)
HSLhsl(268, 51%, 35%)
HSVhsv(268, 67%, 53%)
CMYKcmyk(36.3%, 67.4%, 0%, 47.1%)
CIE-LABlab(28.19, 38.35, -43.78)
CIE-LCHlch(28.19, 58.20, 311.21°)
OKLaboklab(39.77% 0.0754 -0.1245)
OKLCHoklch(39.77% 0.146 301.2)
XYZxyz(9.1106, 5.5290, 23.5042)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C87 #5D872C
analogous
#2C3087 #562C87 #832C87
triadic
#562C87 #87562C #2C8756
tetradic
#562C87 #872C30 #5D872C #2C8783
square
#562C87 #872C30 #5D872C #2C8783
split-complementary
#562C87 #87832C #30872C
monochromatic
#1B0E2B #391D59 #562C87 #733BB5 #9362CC

Accessibility & contrast

On white

9.97
#562C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562C87
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C87#FFFFFF#000000##FFFFFF
##562C871.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562c87;
/* rgb */ color: rgb(86, 44, 135);
/* oklch */ color: oklch(39.8% 0.146 301.2);
Tailwind
colors: {
  custom: {
    50: '#8a68ab',
    500: '#562c87',
    950: '#000000',
  },
}
SCSS
$custom: #562c87;
$custom-light: #8a68ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562c87",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 267.692,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39767,
    "c": 0.14557,
    "h": 301.2
  },
  "luminance": 0.05529
}

Semantic roles & 50–950 ramp

primary
#562C87
secondary
#8BB25D
accent
#DA4D99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562C87

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

Preview Lab → · Contrast checker → · Palette generator →

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