#562AB6#562AB6

#562AB6 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.203 H 289.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#562AB6
RGBrgb(86, 42, 182)
HSLhsl(259, 63%, 44%)
HSVhsv(259, 77%, 71%)
CMYKcmyk(52.7%, 76.9%, 0%, 28.6%)
CIE-LABlab(31.83, 52.14, -66.41)
CIE-LCHlch(31.83, 84.43, 308.14°)
OKLaboklab(43.59% 0.0675 -0.1909)
OKLCHoklch(43.59% 0.203 289.5)
XYZxyz(13.1068, 7.0112, 44.9096)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AB6 #8AB62A
analogous
#2A44B6 #562AB6 #9C2AB6
triadic
#562AB6 #B6562A #2AB656
tetradic
#562AB6 #B62A44 #8AB62A #2AB69C
square
#562AB6 #B62A44 #8AB62A #2AB69C
split-complementary
#562AB6 #B69C2A #44B62A
monochromatic
#271353 #3F1F84 #562AB6 #7548D5 #9A7AE0

Accessibility & contrast

On white

8.74
#562AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#562AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AB6
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AB6#FFFFFF#000000##FFFFFF
##562AB61.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#32516F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #562ab6;
/* rgb */ color: rgb(86, 42, 182);
/* oklch */ color: oklch(43.6% 0.203 289.5);
Tailwind
colors: {
  custom: {
    50: '#9069cd',
    500: '#562ab6',
    950: '#000000',
  },
}
SCSS
$custom: #562ab6;
$custom-light: #9069cd;
$custom-dark: #000000;
JSON
{
  "hex": "#562ab6",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 258.857,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43586,
    "c": 0.20251,
    "h": 289.5
  },
  "luminance": 0.07012
}

Semantic roles & 50–950 ramp

primary
#562AB6
secondary
#AEC873
accent
#E642B2
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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