#562AA7#562AA7

#562AA7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.186 H 292.7°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#562AA7
RGBrgb(86, 42, 167)
HSLhsl(261, 60%, 41%)
HSVhsv(261, 75%, 65%)
CMYKcmyk(48.5%, 74.9%, 0%, 34.5%)
CIE-LABlab(30.46, 48.04, -59.69)
CIE-LCHlch(30.46, 76.62, 308.83°)
OKLaboklab(42.2% 0.0715 -0.1712)
OKLCHoklch(42.2% 0.186 292.7)
XYZxyz(11.6388, 6.4240, 37.1784)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AA7 #7BA72A
analogous
#2A3CA7 #562AA7 #942AA7
triadic
#562AA7 #A7562A #2AA756
tetradic
#562AA7 #A72A3C #7BA72A #2AA794
square
#562AA7 #A72A3C #7BA72A #2AA794
split-complementary
#562AA7 #A7942A #3CA72A
monochromatic
#241145 #3D1E76 #562AA7 #723FCF #9670DB

Accessibility & contrast

On white

9.19
#562AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#562AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AA7
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AA7#FFFFFF#000000##FFFFFF
##562AA71.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#3D4B66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562aa7;
/* rgb */ color: rgb(86, 42, 167);
/* oklch */ color: oklch(42.2% 0.186 292.7);
Tailwind
colors: {
  custom: {
    50: '#8e68c2',
    500: '#562aa7',
    950: '#000000',
  },
}
SCSS
$custom: #562aa7;
$custom-light: #8e68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#562aa7",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 261.12,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42202,
    "c": 0.18557,
    "h": 292.7
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#562AA7
secondary
#A3C26B
accent
#E345AB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #562AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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