#562D7E#562D7E

#562D7E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.133 H 304.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#562D7E
RGBrgb(86, 45, 126)
HSLhsl(270, 47%, 34%)
HSVhsv(270, 64%, 49%)
CMYKcmyk(31.7%, 64.3%, 0%, 50.6%)
CIE-LABlab(27.74, 35.42, -38.88)
CIE-LCHlch(27.74, 52.59, 312.33°)
OKLaboklab(39.23% 0.0749 -0.1101)
OKLCHoklch(39.23% 0.133 304.2)
XYZxyz(8.5412, 5.3616, 20.3195)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D7E #557E2D
analogous
#2D2D7E #562D7E #7E2D7D
triadic
#562D7E #7E562D #2D7E56
tetradic
#562D7E #7E2D2D #557E2D #2D7D7E
square
#562D7E #7E2D2D #557E2D #2D7D7E
split-complementary
#562D7E #7D7E2D #2D7E2D
monochromatic
#180D24 #371D51 #562D7E #753DAB #935FC6

Accessibility & contrast

On white

10.13
#562D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D7E
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D7E#FFFFFF#000000##FFFFFF
##562D7E1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#18417C
Tritanopia (blue-blind)
#4F3E51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562d7e;
/* rgb */ color: rgb(86, 45, 126);
/* oklch */ color: oklch(39.2% 0.133 304.2);
Tailwind
colors: {
  custom: {
    50: '#8968a4',
    500: '#562d7e',
    950: '#000000',
  },
}
SCSS
$custom: #562d7e;
$custom-light: #8968a4;
$custom-dark: #000000;
JSON
{
  "hex": "#562d7e",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 270.37,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39234,
    "c": 0.13315,
    "h": 304.2
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#562D7E
secondary
#83AC5A
accent
#D75193
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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