#562A7F#562A7F

#562A7F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.139 H 304.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#562A7F
RGBrgb(86, 42, 127)
HSLhsl(271, 50%, 33%)
HSVhsv(271, 67%, 50%)
CMYKcmyk(32.3%, 66.9%, 0%, 50.2%)
CIE-LABlab(27.20, 37.33, -40.37)
CIE-LCHlch(27.20, 54.98, 312.76°)
OKLaboklab(38.87% 0.0786 -0.1145)
OKLCHoklch(38.87% 0.139 304.5)
XYZxyz(8.4956, 5.1667, 20.6243)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A7F #537F2A
analogous
#2B2A7F #562A7F #7F2A7D
triadic
#562A7F #7F562A #2A7F56
tetradic
#562A7F #7F2B2A #537F2A #2A7D7F
square
#562A7F #7F2B2A #537F2A #2A7D7F
split-complementary
#562A7F #7D7F2A #2A7F2B
monochromatic
#180C23 #371B51 #562A7F #7539AD #945BC9

Accessibility & contrast

On white

10.33
#562A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562A7F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A7F#FFFFFF#000000##FFFFFF
##562A7F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#11407D
Tritanopia (blue-blind)
#4E3C50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562a7f;
/* rgb */ color: rgb(86, 42, 127);
/* oklch */ color: oklch(38.9% 0.139 304.5);
Tailwind
colors: {
  custom: {
    50: '#8966a5',
    500: '#562a7f',
    950: '#000000',
  },
}
SCSS
$custom: #562a7f;
$custom-light: #8966a5;
$custom-dark: #000000;
JSON
{
  "hex": "#562a7f",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 271.059,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38868,
    "c": 0.13887,
    "h": 304.5
  },
  "luminance": 0.05167
}

Semantic roles & 50–950 ramp

primary
#562A7F
secondary
#81AE57
accent
#DA4E91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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