#562B7D#562B7D

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

Color values

HEX#562B7D
RGBrgb(86, 43, 125)
HSLhsl(271, 49%, 33%)
HSVhsv(271, 66%, 49%)
CMYKcmyk(31.2%, 65.6%, 0%, 51%)
CIE-LABlab(27.26, 36.27, -39.02)
CIE-LCHlch(27.26, 53.27, 312.91°)
OKLaboklab(38.86% 0.0775 -0.1105)
OKLCHoklch(38.86% 0.135 305)
XYZxyz(8.4025, 5.1869, 19.9566)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B7D #527D2B
analogous
#2D2B7D #562B7D #7D2B7B
triadic
#562B7D #7D562B #2B7D56
tetradic
#562B7D #7D2D2B #527D2B #2B7B7D
square
#562B7D #7D2D2B #527D2B #2B7B7D
split-complementary
#562B7D #7B7D2B #2B7D2D
monochromatic
#170C22 #371B4F #562B7D #753BAB #945CC7

Accessibility & contrast

On white

10.31
#562B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#562B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B7D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B7D#FFFFFF#000000##FFFFFF
##562B7D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#4F3C50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562b7d;
/* rgb */ color: rgb(86, 43, 125);
/* oklch */ color: oklch(38.9% 0.135 305.0);
Tailwind
colors: {
  custom: {
    50: '#8967a3',
    500: '#562b7d',
    950: '#000000',
  },
}
SCSS
$custom: #562b7d;
$custom-light: #8967a3;
$custom-dark: #000000;
JSON
{
  "hex": "#562b7d",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 271.463,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38863,
    "c": 0.13499,
    "h": 305
  },
  "luminance": 0.05187
}

Semantic roles & 50–950 ramp

primary
#562B7D
secondary
#80AD57
accent
#D84F91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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