#562B81#562B81

#562B81 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.140 H 303.5°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#562B81
RGBrgb(86, 43, 129)
HSLhsl(270, 50%, 34%)
HSVhsv(270, 67%, 51%)
CMYKcmyk(33.3%, 66.7%, 0%, 49.4%)
CIE-LABlab(27.55, 37.31, -41.07)
CIE-LCHlch(27.55, 55.49, 312.25°)
OKLaboklab(39.16% 0.0772 -0.1165)
OKLCHoklch(39.16% 0.14 303.5)
XYZxyz(8.6632, 5.2912, 21.3295)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B81 #56812B
analogous
#2B2B81 #562B81 #812B81
triadic
#562B81 #81562B #2B8156
tetradic
#562B81 #812B2B #56812B #2B8181
square
#562B81 #812B2B #56812B #2B8181
split-complementary
#562B81 #81812B #2B812B
monochromatic
#190C25 #371C53 #562B81 #753AAF #935DC9

Accessibility & contrast

On white

10.20
#562B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562B81
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B81#FFFFFF#000000##FFFFFF
##562B811.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#0F417F
Tritanopia (blue-blind)
#4E3E52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562b81;
/* rgb */ color: rgb(86, 43, 129);
/* oklch */ color: oklch(39.2% 0.140 303.5);
Tailwind
colors: {
  custom: {
    50: '#8967a6',
    500: '#562b81',
    950: '#000000',
  },
}
SCSS
$custom: #562b81;
$custom-light: #8967a6;
$custom-dark: #000000;
JSON
{
  "hex": "#562b81",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39163,
    "c": 0.13979,
    "h": 303.5
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#562B81
secondary
#84AF59
accent
#DA4E94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562B81

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

Preview Lab → · Contrast checker → · Palette generator →

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