#562A6D#562A6D

#562A6D is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.6% C 0.117 H 312.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#562A6D
RGBrgb(86, 42, 109)
HSLhsl(279, 44%, 30%)
HSVhsv(279, 61%, 43%)
CMYKcmyk(21.1%, 61.5%, 0%, 57.3%)
CIE-LABlab(25.98, 32.81, -30.89)
CIE-LCHlch(25.98, 45.07, 316.72°)
OKLaboklab(37.58% 0.0792 -0.0867)
OKLCHoklch(37.58% 0.117 312.4)
XYZxyz(7.4255, 4.7387, 14.9885)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A6D #416D2A
analogous
#352A6D #562A6D #6D2A63
triadic
#562A6D #6D562A #2A6D56
tetradic
#562A6D #6D352A #416D2A #2A636D
square
#562A6D #6D352A #416D2A #2A636D
split-complementary
#562A6D #636D2A #2A6D35
monochromatic
#110916 #331941 #562A6D #793B99 #9954BD

Accessibility & contrast

On white

10.78
#562A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562A6D
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A6D#FFFFFF#000000##FFFFFF
##562A6D1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6F
Deuteranopia (green-blind)
#263E6B
Tritanopia (blue-blind)
#543647
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #562a6d;
/* rgb */ color: rgb(86, 42, 109);
/* oklch */ color: oklch(37.6% 0.117 312.4);
Tailwind
colors: {
  custom: {
    50: '#886697',
    500: '#562a6d',
    950: '#000000',
  },
}
SCSS
$custom: #562a6d;
$custom-light: #886697;
$custom-dark: #000000;
JSON
{
  "hex": "#562a6d",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 279.403,
    "s": 44.371,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37584,
    "c": 0.1174,
    "h": 312.4
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#562A6D
secondary
#6E9F54
accent
#D45480
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #562A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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