#562E87#562E87

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

Color values

HEX#562E87
RGBrgb(86, 46, 135)
HSLhsl(267, 49%, 35%)
HSVhsv(267, 66%, 53%)
CMYKcmyk(36.3%, 65.9%, 0%, 47.1%)
CIE-LABlab(28.59, 37.25, -43.13)
CIE-LCHlch(28.59, 56.99, 310.81°)
OKLaboklab(40.06% 0.073 -0.1226)
OKLCHoklch(40.06% 0.143 300.8)
XYZxyz(9.1869, 5.6816, 23.5296)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E87 #5F872E
analogous
#2E3387 #562E87 #822E87
triadic
#562E87 #87562E #2E8756
tetradic
#562E87 #872E33 #5F872E #2E8782
square
#562E87 #872E33 #5F872E #2E8782
split-complementary
#562E87 #87822E #33872E
monochromatic
#1C0F2C #391E59 #562E87 #733EB5 #9365CA

Accessibility & contrast

On white

9.83
#562E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562E87
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E87#FFFFFF#000000##FFFFFF
##562E871.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#084385
Tritanopia (blue-blind)
#4C4256
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562e87;
/* rgb */ color: rgb(86, 46, 135);
/* oklch */ color: oklch(40.1% 0.143 300.8);
Tailwind
colors: {
  custom: {
    50: '#8a69ab',
    500: '#562e87',
    950: '#000000',
  },
}
SCSS
$custom: #562e87;
$custom-light: #8a69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562e87",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 266.966,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.14269,
    "h": 300.8
  },
  "luminance": 0.05682
}

Semantic roles & 50–950 ramp

primary
#562E87
secondary
#8DB160
accent
#D94F9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562E87

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

Preview Lab → · Contrast checker → · Palette generator →

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