#562D81#562D81

#562D81 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.137 H 303.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#562D81
RGBrgb(86, 45, 129)
HSLhsl(269, 48%, 34%)
HSVhsv(269, 65%, 51%)
CMYKcmyk(33.3%, 65.1%, 0%, 49.4%)
CIE-LABlab(27.95, 36.20, -40.42)
CIE-LCHlch(27.95, 54.26, 311.85°)
OKLaboklab(39.46% 0.0747 -0.1146)
OKLCHoklch(39.46% 0.137 303.1)
XYZxyz(8.7377, 5.4402, 21.3544)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D81 #58812D
analogous
#2D2E81 #562D81 #802D81
triadic
#562D81 #81562D #2D8156
tetradic
#562D81 #812D2E #58812D #2D8180
square
#562D81 #812D2E #58812D #2D8180
split-complementary
#562D81 #81802D #2E812D
monochromatic
#1A0D26 #381D54 #562D81 #743DAE #9361C8

Accessibility & contrast

On white

10.06
#562D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D81
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D81#FFFFFF#000000##FFFFFF
##562D811.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#13427F
Tritanopia (blue-blind)
#4E3F52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562d81;
/* rgb */ color: rgb(86, 45, 129);
/* oklch */ color: oklch(39.5% 0.137 303.1);
Tailwind
colors: {
  custom: {
    50: '#8968a6',
    500: '#562d81',
    950: '#000000',
  },
}
SCSS
$custom: #562d81;
$custom-light: #8968a6;
$custom-dark: #000000;
JSON
{
  "hex": "#562d81",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 269.286,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39456,
    "c": 0.13682,
    "h": 303.1
  },
  "luminance": 0.0544
}

Semantic roles & 50–950 ramp

primary
#562D81
secondary
#86AE5C
accent
#D85096
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D81

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

Preview Lab → · Contrast checker → · Palette generator →

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