#562B97#562B97

#562B97 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.166 H 296.5°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#562B97
RGBrgb(86, 43, 151)
HSLhsl(264, 56%, 38%)
HSVhsv(264, 72%, 59%)
CMYKcmyk(43%, 71.5%, 0%, 40.8%)
CIE-LABlab(29.26, 43.18, -51.93)
CIE-LCHlch(29.26, 67.53, 309.75°)
OKLaboklab(40.93% 0.0741 -0.1484)
OKLCHoklch(40.93% 0.166 296.5)
XYZxyz(10.2861, 5.9403, 29.8768)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B97 #6C972B
analogous
#2B3697 #562B97 #8C2B97
triadic
#562B97 #97562B #2B9756
tetradic
#562B97 #972B36 #6C972B #2B978C
square
#562B97 #972B36 #6C972B #2B978C
split-complementary
#562B97 #978C2B #36972B
monochromatic
#201038 #3B1D67 #562B97 #7139C7 #9368D4

Accessibility & contrast

On white

9.60
#562B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#562B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B97
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B97#FFFFFF#000000##FFFFFF
##562B971.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#45465E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562b97;
/* rgb */ color: rgb(86, 43, 151);
/* oklch */ color: oklch(40.9% 0.166 296.5);
Tailwind
colors: {
  custom: {
    50: '#8c68b6',
    500: '#562b97',
    950: '#000000',
  },
}
SCSS
$custom: #562b97;
$custom-light: #8c68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562b97",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 263.889,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40929,
    "c": 0.16593,
    "h": 296.5
  },
  "luminance": 0.05941
}

Semantic roles & 50–950 ramp

primary
#562B97
secondary
#98BB63
accent
#DF49A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562B97

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

Preview Lab → · Contrast checker → · Palette generator →

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