#562E98#562E98

#562E98 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.163 H 295.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#562E98
RGBrgb(86, 46, 152)
HSLhsl(263, 54%, 39%)
HSVhsv(263, 70%, 60%)
CMYKcmyk(43.4%, 69.7%, 0%, 40.4%)
CIE-LABlab(29.91, 41.88, -51.48)
CIE-LCHlch(29.91, 66.37, 309.13°)
OKLaboklab(41.42% 0.0708 -0.1472)
OKLCHoklch(41.42% 0.163 295.7)
XYZxyz(10.4807, 6.1992, 30.3440)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E98 #70982E
analogous
#2E3B98 #562E98 #8B2E98
triadic
#562E98 #98562E #2E9856
tetradic
#562E98 #982E3B #70982E #2E988B
square
#562E98 #982E3B #70982E #2E988B
split-complementary
#562E98 #988B2E #3B982E
monochromatic
#21123A #3B2069 #562E98 #713EC5 #946DD3

Accessibility & contrast

On white

9.38
#562E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#562E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E98
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E98#FFFFFF#000000##FFFFFF
##562E981.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#44485F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562e98;
/* rgb */ color: rgb(86, 46, 152);
/* oklch */ color: oklch(41.4% 0.163 295.7);
Tailwind
colors: {
  custom: {
    50: '#8b6ab7',
    500: '#562e98',
    950: '#000000',
  },
}
SCSS
$custom: #562e98;
$custom-light: #8b6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#562e98",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 262.642,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41417,
    "c": 0.16332,
    "h": 295.7
  },
  "luminance": 0.06199
}

Semantic roles & 50–950 ramp

primary
#562E98
secondary
#9BBA68
accent
#DD4BA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0711
muted
#7D7A80

Preview Lab

Preview with #562E98

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

Preview Lab → · Contrast checker → · Palette generator →

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