#562E8E#562E8E

#562E8E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.151 H 298.5°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#562E8E
RGBrgb(86, 46, 142)
HSLhsl(265, 51%, 37%)
HSVhsv(265, 68%, 56%)
CMYKcmyk(39.4%, 67.6%, 0%, 44.3%)
CIE-LABlab(29.12, 39.14, -46.62)
CIE-LCHlch(29.12, 60.87, 310.01°)
OKLaboklab(40.6% 0.0723 -0.1329)
OKLCHoklch(40.6% 0.151 298.5)
XYZxyz(9.6960, 5.8853, 26.2111)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E8E #668E2E
analogous
#2E368E #562E8E #862E8E
triadic
#562E8E #8E562E #2E8E56
tetradic
#562E8E #8E2E36 #668E2E #2E8E86
square
#562E8E #8E2E36 #668E2E #2E8E86
split-complementary
#562E8E #8E862E #368E2E
monochromatic
#1E1032 #3A1F60 #562E8E #723DBC #9368CE

Accessibility & contrast

On white

9.65
#562E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#562E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E8E
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E8E#FFFFFF#000000##FFFFFF
##562E8E1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#49445A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562e8e;
/* rgb */ color: rgb(86, 46, 142);
/* oklch */ color: oklch(40.6% 0.151 298.5);
Tailwind
colors: {
  custom: {
    50: '#8a69b0',
    500: '#562e8e',
    950: '#000000',
  },
}
SCSS
$custom: #562e8e;
$custom-light: #8a69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#562e8e",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 265,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40604,
    "c": 0.15124,
    "h": 298.5
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#562E8E
secondary
#93B563
accent
#DB4DA0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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