#562A6E#562A6E

#562A6E is a dark, moderate violet. Relative luminance 0.048; OKLCH L 37.7% C 0.119 H 311.9°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#562A6E
RGBrgb(86, 42, 110)
HSLhsl(279, 45%, 30%)
HSVhsv(279, 62%, 43%)
CMYKcmyk(21.8%, 61.8%, 0%, 56.9%)
CIE-LABlab(26.04, 33.06, -31.43)
CIE-LCHlch(26.04, 45.62, 316.44°)
OKLaboklab(37.65% 0.0792 -0.0883)
OKLCHoklch(37.65% 0.119 311.9)
XYZxyz(7.4797, 4.7603, 15.2736)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A6E #426E2A
analogous
#342A6E #562A6E #6E2A64
triadic
#562A6E #6E562A #2A6E56
tetradic
#562A6E #6E342A #426E2A #2A646E
square
#562A6E #6E342A #426E2A #2A646E
split-complementary
#562A6E #646E2A #2A6E34
monochromatic
#110816 #331942 #562A6E #793B9A #9955BE

Accessibility & contrast

On white

10.76
#562A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#562A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A6E
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A6E#FFFFFF#000000##FFFFFF
##562A6E1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133B70
Deuteranopia (green-blind)
#253F6C
Tritanopia (blue-blind)
#533647
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562a6e;
/* rgb */ color: rgb(86, 42, 110);
/* oklch */ color: oklch(37.7% 0.119 311.9);
Tailwind
colors: {
  custom: {
    50: '#886698',
    500: '#562a6e',
    950: '#000000',
  },
}
SCSS
$custom: #562a6e;
$custom-light: #886698;
$custom-dark: #000000;
JSON
{
  "hex": "#562a6e",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 278.824,
    "s": 44.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37652,
    "c": 0.11859,
    "h": 311.9
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#562A6E
secondary
#6FA054
accent
#D45381
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #562A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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