#562A6F#562A6F

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

Color values

HEX#562A6F
RGBrgb(86, 42, 111)
HSLhsl(278, 45%, 30%)
HSVhsv(278, 62%, 44%)
CMYKcmyk(22.5%, 62.2%, 0%, 56.5%)
CIE-LABlab(26.11, 33.30, -31.97)
CIE-LCHlch(26.11, 46.16, 316.16°)
OKLaboklab(37.72% 0.0792 -0.0898)
OKLCHoklch(37.72% 0.12 311.4)
XYZxyz(7.5344, 4.7822, 15.5620)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A6F #436F2A
analogous
#342A6F #562A6F #6F2A65
triadic
#562A6F #6F562A #2A6F56
tetradic
#562A6F #6F342A #436F2A #2A656F
square
#562A6F #6F342A #436F2A #2A656F
split-complementary
#562A6F #656F2A #2A6F34
monochromatic
#110816 #341943 #562A6F #783B9B #9855BF

Accessibility & contrast

On white

10.73
#562A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#562A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A6F
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A6F#FFFFFF#000000##FFFFFF
##562A6F1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C71
Deuteranopia (green-blind)
#243F6D
Tritanopia (blue-blind)
#533748
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562a6f;
/* rgb */ color: rgb(86, 42, 111);
/* oklch */ color: oklch(37.7% 0.120 311.4);
Tailwind
colors: {
  custom: {
    50: '#886699',
    500: '#562a6f',
    950: '#000000',
  },
}
SCSS
$custom: #562a6f;
$custom-light: #886699;
$custom-dark: #000000;
JSON
{
  "hex": "#562a6f",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 278.261,
    "s": 45.098,
    "l": 30
  },
  "oklch": {
    "l": 0.37719,
    "c": 0.11978,
    "h": 311.4
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#562A6F
secondary
#70A154
accent
#D55382
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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