#562D8E#562D8E

#562D8E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.153 H 298.8°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#562D8E
RGBrgb(86, 45, 142)
HSLhsl(265, 52%, 37%)
HSVhsv(265, 68%, 56%)
CMYKcmyk(39.4%, 68.3%, 0%, 44.3%)
CIE-LABlab(28.92, 39.68, -46.94)
CIE-LCHlch(28.92, 61.47, 310.21°)
OKLaboklab(40.46% 0.0734 -0.1338)
OKLCHoklch(40.46% 0.153 298.8)
XYZxyz(9.6574, 5.8081, 26.1982)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D8E #658E2D
analogous
#2D348E #562D8E #872D8E
triadic
#562D8E #8E562D #2D8E56
tetradic
#562D8E #8E2D34 #658E2D #2D8E87
square
#562D8E #8E2D34 #658E2D #2D8E87
split-complementary
#562D8E #8E872D #348E2D
monochromatic
#1E1031 #3A1E60 #562D8E #723CBC #9367CF

Accessibility & contrast

On white

9.72
#562D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#562D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D8E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D8E#FFFFFF#000000##FFFFFF
##562D8E1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#494459
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562d8e;
/* rgb */ color: rgb(86, 45, 142);
/* oklch */ color: oklch(40.5% 0.153 298.8);
Tailwind
colors: {
  custom: {
    50: '#8a69b0',
    500: '#562d8e',
    950: '#000000',
  },
}
SCSS
$custom: #562d8e;
$custom-light: #8a69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#562d8e",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 265.361,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40462,
    "c": 0.15262,
    "h": 298.8
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#562D8E
secondary
#92B561
accent
#DB4C9F
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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