#562A7E#562A7E

#562A7E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.138 H 304.9°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#562A7E
RGBrgb(86, 42, 126)
HSLhsl(271, 50%, 33%)
HSVhsv(271, 67%, 49%)
CMYKcmyk(31.7%, 66.7%, 0%, 50.6%)
CIE-LABlab(27.13, 37.07, -39.86)
CIE-LCHlch(27.13, 54.43, 312.93°)
OKLaboklab(38.79% 0.0787 -0.113)
OKLCHoklch(38.79% 0.138 304.9)
XYZxyz(8.4308, 5.1408, 20.2827)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A7E #527E2A
analogous
#2C2A7E #562A7E #7E2A7C
triadic
#562A7E #7E562A #2A7E56
tetradic
#562A7E #7E2C2A #527E2A #2A7C7E
square
#562A7E #7E2C2A #527E2A #2A7C7E
split-complementary
#562A7E #7C7E2A #2A7E2C
monochromatic
#170B22 #371B50 #562A7E #7539AC #945AC8

Accessibility & contrast

On white

10.35
#562A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#562A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A7E
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A7E#FFFFFF#000000##FFFFFF
##562A7E1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#13407C
Tritanopia (blue-blind)
#4F3C50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562a7e;
/* rgb */ color: rgb(86, 42, 126);
/* oklch */ color: oklch(38.8% 0.138 304.9);
Tailwind
colors: {
  custom: {
    50: '#8966a4',
    500: '#562a7e',
    950: '#000000',
  },
}
SCSS
$custom: #562a7e;
$custom-light: #8966a4;
$custom-dark: #000000;
JSON
{
  "hex": "#562a7e",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 271.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38793,
    "c": 0.13768,
    "h": 304.9
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#562A7E
secondary
#80AE56
accent
#DA4E91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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