#562E7A#562E7A

#562E7A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.127 H 305.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#562E7A
RGBrgb(86, 46, 122)
HSLhsl(272, 45%, 33%)
HSVhsv(272, 62%, 48%)
CMYKcmyk(29.5%, 62.3%, 0%, 52.2%)
CIE-LABlab(27.68, 33.81, -36.46)
CIE-LCHlch(27.68, 49.72, 312.84°)
OKLaboklab(39.1% 0.0737 -0.103)
OKLCHoklch(39.1% 0.127 305.6)
XYZxyz(8.3268, 5.3376, 19.0002)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E7A #527A2E
analogous
#302E7A #562E7A #7A2E78
triadic
#562E7A #7A562E #2E7A56
tetradic
#562E7A #7A302E #527A2E #2E787A
square
#562E7A #7A302E #527A2E #2E787A
split-complementary
#562E7A #787A2E #2E7A30
monochromatic
#170C21 #371D4E #562E7A #753FA6 #9460C3

Accessibility & contrast

On white

10.16
#562E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562E7A
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E7A#FFFFFF#000000##FFFFFF
##562E7A1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A407C
Deuteranopia (green-blind)
#1E4178
Tritanopia (blue-blind)
#503D4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562e7a;
/* rgb */ color: rgb(86, 46, 122);
/* oklch */ color: oklch(39.1% 0.127 305.6);
Tailwind
colors: {
  custom: {
    50: '#8869a1',
    500: '#562e7a',
    950: '#000000',
  },
}
SCSS
$custom: #562e7a;
$custom-light: #8869a1;
$custom-dark: #000000;
JSON
{
  "hex": "#562e7a",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 271.579,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39098,
    "c": 0.12665,
    "h": 305.6
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#562E7A
secondary
#80AA5A
accent
#D55390
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #562E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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