#562A98#562A98

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

Color values

HEX#562A98
RGBrgb(86, 42, 152)
HSLhsl(264, 57%, 38%)
HSVhsv(264, 72%, 60%)
CMYKcmyk(43.4%, 72.4%, 0%, 40.4%)
CIE-LABlab(29.16, 43.96, -52.70)
CIE-LCHlch(29.16, 68.63, 309.83°)
OKLaboklab(40.88% 0.0749 -0.1507)
OKLCHoklch(40.88% 0.168 296.4)
XYZxyz(10.3317, 5.9011, 30.2944)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A98 #6C982A
analogous
#2A3598 #562A98 #8D2A98
triadic
#562A98 #98562A #2A9856
tetradic
#562A98 #982A35 #6C982A #2A988D
square
#562A98 #982A35 #6C982A #2A988D
split-complementary
#562A98 #988D2A #35982A
monochromatic
#201038 #3B1D68 #562A98 #7137C8 #9367D5

Accessibility & contrast

On white

9.63
#562A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#562A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A98
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A98#FFFFFF#000000##FFFFFF
##562A981.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562a98;
/* rgb */ color: rgb(86, 42, 152);
/* oklch */ color: oklch(40.9% 0.168 296.4);
Tailwind
colors: {
  custom: {
    50: '#8c67b7',
    500: '#562a98',
    950: '#000000',
  },
}
SCSS
$custom: #562a98;
$custom-light: #8c67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562a98",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 264,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40884,
    "c": 0.16832,
    "h": 296.4
  },
  "luminance": 0.05901
}

Semantic roles & 50–950 ramp

primary
#562A98
secondary
#98BB62
accent
#E048A3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562A98

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

Preview Lab → · Contrast checker → · Palette generator →

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