#562D7C#562D7C

#562D7C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.131 H 305.0°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#562D7C
RGBrgb(86, 45, 124)
HSLhsl(271, 47%, 33%)
HSVhsv(271, 64%, 49%)
CMYKcmyk(30.6%, 63.7%, 0%, 51.4%)
CIE-LABlab(27.60, 34.90, -37.84)
CIE-LCHlch(27.60, 51.47, 312.68°)
OKLaboklab(39.09% 0.075 -0.107)
OKLCHoklch(39.09% 0.131 305)
XYZxyz(8.4134, 5.3105, 19.6467)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D7C #537C2D
analogous
#2E2D7C #562D7C #7C2D7A
triadic
#562D7C #7C562D #2D7C56
tetradic
#562D7C #7C2E2D #537C2D #2D7A7C
square
#562D7C #7C2E2D #537C2D #2D7A7C
split-complementary
#562D7C #7A7C2D #2D7C2E
monochromatic
#180C22 #371D4F #562D7C #753DA9 #945FC5

Accessibility & contrast

On white

10.18
#562D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D7C
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D7C#FFFFFF#000000##FFFFFF
##562D7C1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02407E
Deuteranopia (green-blind)
#1B417A
Tritanopia (blue-blind)
#4F3D50
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562d7c;
/* rgb */ color: rgb(86, 45, 124);
/* oklch */ color: oklch(39.1% 0.131 305.0);
Tailwind
colors: {
  custom: {
    50: '#8968a2',
    500: '#562d7c',
    950: '#000000',
  },
}
SCSS
$custom: #562d7c;
$custom-light: #8968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562d7c",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 271.139,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39088,
    "c": 0.13069,
    "h": 305
  },
  "luminance": 0.0531
}

Semantic roles & 50–950 ramp

primary
#562D7C
secondary
#81AB5A
accent
#D65191
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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