#562C81#562C81

#562C81 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.138 H 303.3°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#562C81
RGBrgb(86, 44, 129)
HSLhsl(270, 49%, 34%)
HSVhsv(270, 66%, 51%)
CMYKcmyk(33.3%, 65.9%, 0%, 49.4%)
CIE-LABlab(27.75, 36.76, -40.75)
CIE-LCHlch(27.75, 54.88, 312.06°)
OKLaboklab(39.31% 0.076 -0.1156)
OKLCHoklch(39.31% 0.138 303.3)
XYZxyz(8.7000, 5.3648, 21.3418)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C81 #57812C
analogous
#2C2D81 #562C81 #812C81
triadic
#562C81 #81562C #2C8156
tetradic
#562C81 #812C2D #57812C #2C8181
square
#562C81 #812C2D #57812C #2C8181
split-complementary
#562C81 #81812C #2D812C
monochromatic
#190D26 #381C53 #562C81 #743CAF #935FC8

Accessibility & contrast

On white

10.13
#562C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C81
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C81#FFFFFF#000000##FFFFFF
##562C811.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#11417F
Tritanopia (blue-blind)
#4E3E52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562c81;
/* rgb */ color: rgb(86, 44, 129);
/* oklch */ color: oklch(39.3% 0.138 303.3);
Tailwind
colors: {
  custom: {
    50: '#8968a6',
    500: '#562c81',
    950: '#000000',
  },
}
SCSS
$custom: #562c81;
$custom-light: #8968a6;
$custom-dark: #000000;
JSON
{
  "hex": "#562c81",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 269.647,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39308,
    "c": 0.13831,
    "h": 303.3
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#562C81
secondary
#85AF5A
accent
#D94F95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562C81

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

Preview Lab → · Contrast checker → · Palette generator →

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