#562F84#562F84

#562F84 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.138 H 301.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#562F84
RGBrgb(86, 47, 132)
HSLhsl(268, 47%, 35%)
HSVhsv(268, 64%, 52%)
CMYKcmyk(34.8%, 64.4%, 0%, 48.2%)
CIE-LABlab(28.58, 35.88, -41.28)
CIE-LCHlch(28.58, 54.69, 311.00°)
OKLaboklab(39.98% 0.072 -0.1172)
OKLCHoklch(39.98% 0.138 301.6)
XYZxyz(9.0181, 5.6774, 22.4461)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F84 #5D842F
analogous
#2F3384 #562F84 #802F84
triadic
#562F84 #84562F #2F8456
tetradic
#562F84 #842F33 #5D842F #2F8480
square
#562F84 #842F33 #5D842F #2F8480
split-complementary
#562F84 #84802F #33842F
monochromatic
#1B0F2A #391F57 #562F84 #733FB1 #9365C8

Accessibility & contrast

On white

9.83
#562F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#562F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F84
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F84#FFFFFF#000000##FFFFFF
##562F841.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#124382
Tritanopia (blue-blind)
#4D4155
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562f84;
/* rgb */ color: rgb(86, 47, 132);
/* oklch */ color: oklch(40.0% 0.138 301.6);
Tailwind
colors: {
  custom: {
    50: '#896aa8',
    500: '#562f84',
    950: '#000000',
  },
}
SCSS
$custom: #562f84;
$custom-light: #896aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#562f84",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 267.529,
    "s": 47.486,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39981,
    "c": 0.13751,
    "h": 301.6
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#562F84
secondary
#8BAF60
accent
#D75199
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F84

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

Preview Lab → · Contrast checker → · Palette generator →

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