#562C98#562C98

#562C98 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.166 H 296.1°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#562C98
RGBrgb(86, 44, 152)
HSLhsl(263, 55%, 38%)
HSVhsv(263, 71%, 60%)
CMYKcmyk(43.4%, 71.1%, 0%, 40.4%)
CIE-LABlab(29.53, 42.93, -52.10)
CIE-LCHlch(29.53, 67.51, 309.49°)
OKLaboklab(41.15% 0.0729 -0.149)
OKLCHoklch(41.15% 0.166 296.1)
XYZxyz(10.4044, 6.0466, 30.3186)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C98 #6E982C
analogous
#2C3898 #562C98 #8C2C98
triadic
#562C98 #98562C #2C9856
tetradic
#562C98 #982C38 #6E982C #2C988C
square
#562C98 #982C38 #6E982C #2C988C
split-complementary
#562C98 #988C2C #38982C
monochromatic
#201139 #3B1E69 #562C98 #713BC6 #936AD4

Accessibility & contrast

On white

9.50
#562C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#562C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C98
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C98#FFFFFF#000000##FFFFFF
##562C981.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#45475F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562c98;
/* rgb */ color: rgb(86, 44, 152);
/* oklch */ color: oklch(41.1% 0.166 296.1);
Tailwind
colors: {
  custom: {
    50: '#8c69b7',
    500: '#562c98',
    950: '#000000',
  },
}
SCSS
$custom: #562c98;
$custom-light: #8c69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562c98",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 263.333,
    "s": 55.102,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41146,
    "c": 0.16585,
    "h": 296.1
  },
  "luminance": 0.06047
}

Semantic roles & 50–950 ramp

primary
#562C98
secondary
#99BB65
accent
#DE49A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562C98

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

Preview Lab → · Contrast checker → · Palette generator →

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