#562A7A#562A7A

#562A7A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.133 H 306.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#562A7A
RGBrgb(86, 42, 122)
HSLhsl(273, 49%, 32%)
HSVhsv(273, 66%, 48%)
CMYKcmyk(29.5%, 65.6%, 0%, 52.2%)
CIE-LABlab(26.85, 36.05, -37.79)
CIE-LCHlch(26.85, 52.23, 313.65°)
OKLaboklab(38.5% 0.079 -0.1069)
OKLCHoklch(38.5% 0.133 306.5)
XYZxyz(8.1778, 5.0396, 18.9505)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A7A #4E7A2A
analogous
#2E2A7A #562A7A #7A2A76
triadic
#562A7A #7A562A #2A7A56
tetradic
#562A7A #7A2E2A #4E7A2A #2A767A
square
#562A7A #7A2E2A #4E7A2A #2A767A
split-complementary
#562A7A #767A2A #2A7A2E
monochromatic
#160B1F #361A4C #562A7A #763AA8 #9559C6

Accessibility & contrast

On white

10.46
#562A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#562A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A7A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A7A#FFFFFF#000000##FFFFFF
##562A7A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#194078
Tritanopia (blue-blind)
#503A4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #562a7a;
/* rgb */ color: rgb(86, 42, 122);
/* oklch */ color: oklch(38.5% 0.133 306.5);
Tailwind
colors: {
  custom: {
    50: '#8966a1',
    500: '#562a7a',
    950: '#000000',
  },
}
SCSS
$custom: #562a7a;
$custom-light: #8966a1;
$custom-dark: #000000;
JSON
{
  "hex": "#562a7a",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 273,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38496,
    "c": 0.1329,
    "h": 306.5
  },
  "luminance": 0.0504
}

Semantic roles & 50–950 ramp

primary
#562A7A
secondary
#7CAB55
accent
#D84F8D
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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