#562B98#562B98

#562B98 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.167 H 296.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#562B98
RGBrgb(86, 43, 152)
HSLhsl(264, 56%, 38%)
HSVhsv(264, 72%, 60%)
CMYKcmyk(43.4%, 71.7%, 0%, 40.4%)
CIE-LABlab(29.34, 43.45, -52.40)
CIE-LCHlch(29.34, 68.07, 309.66°)
OKLaboklab(41.01% 0.0739 -0.1498)
OKLCHoklch(41.01% 0.167 296.3)
XYZxyz(10.3676, 5.9730, 30.3063)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B98 #6D982B
analogous
#2B3698 #562B98 #8C2B98
triadic
#562B98 #98562B #2B9856
tetradic
#562B98 #982B36 #6D982B #2B988C
square
#562B98 #982B36 #6D982B #2B988C
split-complementary
#562B98 #988C2B #36982B
monochromatic
#201039 #3B1E68 #562B98 #7139C7 #9369D5

Accessibility & contrast

On white

9.57
#562B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562B98
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B98#FFFFFF#000000##FFFFFF
##562B981.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#45465E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562b98;
/* rgb */ color: rgb(86, 43, 152);
/* oklch */ color: oklch(41.0% 0.167 296.3);
Tailwind
colors: {
  custom: {
    50: '#8c68b7',
    500: '#562b98',
    950: '#000000',
  },
}
SCSS
$custom: #562b98;
$custom-light: #8c68b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562b98",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 263.67,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41014,
    "c": 0.16709,
    "h": 296.3
  },
  "luminance": 0.05973
}

Semantic roles & 50–950 ramp

primary
#562B98
secondary
#99BB64
accent
#DF49A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562B98

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

Preview Lab → · Contrast checker → · Palette generator →

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