#562E9D#562E9D

#562E9D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.169 H 294.4°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#562E9D
RGBrgb(86, 46, 157)
HSLhsl(262, 55%, 40%)
HSVhsv(262, 71%, 62%)
CMYKcmyk(45.2%, 70.7%, 0%, 38.4%)
CIE-LABlab(30.32, 43.26, -53.86)
CIE-LCHlch(30.32, 69.09, 308.77°)
OKLaboklab(41.84% 0.07 -0.1541)
OKLCHoklch(41.84% 0.169 294.4)
XYZxyz(10.8989, 6.3664, 32.5464)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E9D #759D2E
analogous
#2E3D9D #562E9D #8E2E9D
triadic
#562E9D #9D562E #2E9D56
tetradic
#562E9D #9D2E3D #759D2E #2E9D8E
square
#562E9D #9D2E3D #759D2E #2E9D8E
split-complementary
#562E9D #9D8E2E #3D9D2E
monochromatic
#22123E #3C206E #562E9D #7141C7 #9570D5

Accessibility & contrast

On white

9.24
#562E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#562E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E9D
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E9D#FFFFFF#000000##FFFFFF
##562E9D1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#424A62
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562e9d;
/* rgb */ color: rgb(86, 46, 157);
/* oklch */ color: oklch(41.8% 0.169 294.4);
Tailwind
colors: {
  custom: {
    50: '#8c6abb',
    500: '#562e9d',
    950: '#000000',
  },
}
SCSS
$custom: #562e9d;
$custom-light: #8c6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#562e9d",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 261.622,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41837,
    "c": 0.16928,
    "h": 294.4
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#562E9D
secondary
#9FBD6A
accent
#DE4AA9
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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