#562B7C#562B7C

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

Color values

HEX#562B7C
RGBrgb(86, 43, 124)
HSLhsl(272, 49%, 33%)
HSVhsv(272, 65%, 49%)
CMYKcmyk(30.6%, 65.3%, 0%, 51.4%)
CIE-LABlab(27.19, 36.01, -38.50)
CIE-LCHlch(27.19, 52.72, 313.08°)
OKLaboklab(38.79% 0.0776 -0.109)
OKLCHoklch(38.79% 0.134 305.4)
XYZxyz(8.3389, 5.1615, 19.6218)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B7C #517C2B
analogous
#2E2B7C #562B7C #7C2B79
triadic
#562B7C #7C562B #2B7C56
tetradic
#562B7C #7C2E2B #517C2B #2B797C
square
#562B7C #7C2E2B #517C2B #2B797C
split-complementary
#562B7C #797C2B #2B7C2E
monochromatic
#170B21 #361B4F #562B7C #763BA9 #945BC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562B7C#FFFFFF#000000##FFFFFF
##562B7C1.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)
#003F7F
Deuteranopia (green-blind)
#18407A
Tritanopia (blue-blind)
#4F3C4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562b7c;
/* rgb */ color: rgb(86, 43, 124);
/* oklch */ color: oklch(38.8% 0.134 305.4);
Tailwind
colors: {
  custom: {
    50: '#8967a2',
    500: '#562b7c',
    950: '#000000',
  },
}
SCSS
$custom: #562b7c;
$custom-light: #8967a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562b7c",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 271.852,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38789,
    "c": 0.13378,
    "h": 305.4
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#562B7C
secondary
#7FAC57
accent
#D85090
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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