#562AAB#562AAB

#562AAB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.190 H 291.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#562AAB
RGBrgb(86, 42, 171)
HSLhsl(260, 61%, 42%)
HSVhsv(260, 75%, 67%)
CMYKcmyk(49.7%, 75.4%, 0%, 32.9%)
CIE-LABlab(30.82, 49.13, -61.51)
CIE-LCHlch(30.82, 78.72, 308.62°)
OKLaboklab(42.57% 0.0705 -0.1766)
OKLCHoklch(42.57% 0.19 291.8)
XYZxyz(12.0143, 6.5742, 39.1561)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AAB #7FAB2A
analogous
#2A3FAB #562AAB #972AAB
triadic
#562AAB #AB562A #2AAB56
tetradic
#562AAB #AB2A3F #7FAB2A #2AAB97
square
#562AAB #AB2A3F #7FAB2A #2AAB97
split-complementary
#562AAB #AB972A #3FAB2A
monochromatic
#251249 #3D1E7A #562AAB #7242D1 #9773DD

Accessibility & contrast

On white

9.07
#562AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#562AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AAB
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AAB#FFFFFF#000000##FFFFFF
##562AAB1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#3A4D69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562aab;
/* rgb */ color: rgb(86, 42, 171);
/* oklch */ color: oklch(42.6% 0.190 291.8);
Tailwind
colors: {
  custom: {
    50: '#8e68c5',
    500: '#562aab',
    950: '#000000',
  },
}
SCSS
$custom: #562aab;
$custom-light: #8e68c5;
$custom-dark: #000000;
JSON
{
  "hex": "#562aab",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 260.465,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42565,
    "c": 0.19013,
    "h": 291.8
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#562AAB
secondary
#A6C46D
accent
#E444AD
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #562AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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