#562B7E#562B7E

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

Color values

HEX#562B7E
RGBrgb(86, 43, 126)
HSLhsl(271, 49%, 33%)
HSVhsv(271, 66%, 49%)
CMYKcmyk(31.7%, 65.9%, 0%, 50.6%)
CIE-LABlab(27.33, 36.53, -39.53)
CIE-LCHlch(27.33, 53.83, 312.74°)
OKLaboklab(38.94% 0.0775 -0.112)
OKLCHoklch(38.94% 0.136 304.7)
XYZxyz(8.4667, 5.2126, 20.2947)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B7E #537E2B
analogous
#2C2B7E #562B7E #7E2B7C
triadic
#562B7E #7E562B #2B7E56
tetradic
#562B7E #7E2C2B #537E2B #2B7C7E
square
#562B7E #7E2C2B #537E2B #2B7C7E
split-complementary
#562B7E #7C7E2B #2B7E2C
monochromatic
#180C23 #371B50 #562B7E #753BAC #945CC7

Accessibility & contrast

On white

10.28
#562B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562B7E
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B7E#FFFFFF#000000##FFFFFF
##562B7E1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#15417C
Tritanopia (blue-blind)
#4F3D50
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562b7e;
/* rgb */ color: rgb(86, 43, 126);
/* oklch */ color: oklch(38.9% 0.136 304.7);
Tailwind
colors: {
  custom: {
    50: '#8967a4',
    500: '#562b7e',
    950: '#000000',
  },
}
SCSS
$custom: #562b7e;
$custom-light: #8967a4;
$custom-dark: #000000;
JSON
{
  "hex": "#562b7e",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 271.084,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38938,
    "c": 0.13619,
    "h": 304.7
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#562B7E
secondary
#81AD58
accent
#D94F91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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