#562B8D#562B8D

#562B8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.154 H 299.5°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#562B8D
RGBrgb(86, 43, 141)
HSLhsl(266, 53%, 36%)
HSVhsv(266, 70%, 55%)
CMYKcmyk(39%, 69.5%, 0%, 44.7%)
CIE-LABlab(28.46, 40.48, -47.08)
CIE-LCHlch(28.46, 62.09, 310.69°)
OKLaboklab(40.1% 0.0758 -0.1342)
OKLCHoklch(40.1% 0.154 299.5)
XYZxyz(9.5081, 5.6292, 25.7797)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B8D #628D2B
analogous
#2B318D #562B8D #872B8D
triadic
#562B8D #8D562B #2B8D56
tetradic
#562B8D #8D2B31 #628D2B #2B8D87
square
#562B8D #8D2B31 #628D2B #2B8D87
split-complementary
#562B8D #8D872B #318D2B
monochromatic
#1D0E2F #391D5E #562B8D #7339BC #9363CF

Accessibility & contrast

On white

9.88
#562B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B8D
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B8D#FFFFFF#000000##FFFFFF
##562B8D1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#494258
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562b8d;
/* rgb */ color: rgb(86, 43, 141);
/* oklch */ color: oklch(40.1% 0.154 299.5);
Tailwind
colors: {
  custom: {
    50: '#8a68af',
    500: '#562b8d',
    950: '#000000',
  },
}
SCSS
$custom: #562b8d;
$custom-light: #8a68af;
$custom-dark: #000000;
JSON
{
  "hex": "#562b8d",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 266.327,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40103,
    "c": 0.15412,
    "h": 299.5
  },
  "luminance": 0.05629
}

Semantic roles & 50–950 ramp

primary
#562B8D
secondary
#8FB65E
accent
#DD4B9D
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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