#562B8B#562B8B

#562B8B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.152 H 300.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#562B8B
RGBrgb(86, 43, 139)
HSLhsl(267, 53%, 36%)
HSVhsv(267, 69%, 55%)
CMYKcmyk(38.1%, 69.1%, 0%, 45.5%)
CIE-LABlab(28.30, 39.95, -46.09)
CIE-LCHlch(28.30, 60.99, 310.92°)
OKLaboklab(39.94% 0.0761 -0.1313)
OKLCHoklch(39.94% 0.152 300.1)
XYZxyz(9.3607, 5.5702, 25.0031)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B8B #608B2B
analogous
#2B308B #562B8B #862B8B
triadic
#562B8B #8B562B #2B8B56
tetradic
#562B8B #8B2B30 #608B2B #2B8B86
square
#562B8B #8B2B30 #608B2B #2B8B86
split-complementary
#562B8B #8B862B #308B2B
monochromatic
#1C0E2E #391D5C #562B8B #7339BA #9362CE

Accessibility & contrast

On white

9.93
#562B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#562B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B8B
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B8B#FFFFFF#000000##FFFFFF
##562B8B1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#4A4157
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562b8b;
/* rgb */ color: rgb(86, 43, 139);
/* oklch */ color: oklch(39.9% 0.152 300.1);
Tailwind
colors: {
  custom: {
    50: '#8a68ae',
    500: '#562b8b',
    950: '#000000',
  },
}
SCSS
$custom: #562b8b;
$custom-light: #8a68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#562b8b",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 266.875,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39942,
    "c": 0.15175,
    "h": 300.1
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#562B8B
secondary
#8DB55D
accent
#DC4C9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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