#562C7B#562C7B

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

Color values

HEX#562C7B
RGBrgb(86, 44, 123)
HSLhsl(272, 47%, 33%)
HSVhsv(272, 64%, 48%)
CMYKcmyk(30.1%, 64.2%, 0%, 51.8%)
CIE-LABlab(27.32, 35.20, -37.65)
CIE-LCHlch(27.32, 51.54, 313.07°)
OKLaboklab(38.87% 0.0763 -0.1065)
OKLCHoklch(38.87% 0.131 305.6)
XYZxyz(8.3128, 5.2099, 19.3027)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C7B #517B2C
analogous
#2F2C7B #562C7B #7B2C78
triadic
#562C7B #7B562C #2C7B56
tetradic
#562C7B #7B2F2C #517B2C #2C787B
square
#562C7B #7B2F2C #517B2C #2C787B
split-complementary
#562C7B #787B2C #2C7B2F
monochromatic
#170C21 #361C4E #562C7B #763CA8 #945DC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562C7B#FFFFFF#000000##FFFFFF
##562C7B1.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)
#003F7D
Deuteranopia (green-blind)
#1B4179
Tritanopia (blue-blind)
#503C4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562c7b;
/* rgb */ color: rgb(86, 44, 123);
/* oklch */ color: oklch(38.9% 0.131 305.6);
Tailwind
colors: {
  custom: {
    50: '#8968a2',
    500: '#562c7b',
    950: '#000000',
  },
}
SCSS
$custom: #562c7b;
$custom-light: #8968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562c7b",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 271.899,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38865,
    "c": 0.13103,
    "h": 305.6
  },
  "luminance": 0.0521
}

Semantic roles & 50–950 ramp

primary
#562C7B
secondary
#7FAB58
accent
#D75190
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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