#562DAB#562DAB

#562DAB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.187 H 291.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#562DAB
RGBrgb(86, 45, 171)
HSLhsl(260, 58%, 42%)
HSVhsv(260, 74%, 67%)
CMYKcmyk(49.7%, 73.7%, 0%, 32.9%)
CIE-LABlab(31.34, 47.67, -60.66)
CIE-LCHlch(31.34, 77.14, 308.16°)
OKLaboklab(42.93% 0.068 -0.1741)
OKLCHoklch(42.93% 0.187 291.3)
XYZxyz(12.1247, 6.7950, 39.1929)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DAB #82AB2D
analogous
#2D43AB #562DAB #952DAB
triadic
#562DAB #AB562D #2DAB56
tetradic
#562DAB #AB2D43 #82AB2D #2DAB95
square
#562DAB #AB2D43 #82AB2D #2DAB95
split-complementary
#562DAB #AB952D #43AB2D
monochromatic
#25144A #3E207B #562DAB #7347CE #9877DB

Accessibility & contrast

On white

8.90
#562DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#562DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DAB
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DAB#FFFFFF#000000##FFFFFF
##562DAB1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#3A4F69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562dab;
/* rgb */ color: rgb(86, 45, 171);
/* oklch */ color: oklch(42.9% 0.187 291.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ac5',
    500: '#562dab',
    950: '#000000',
  },
}
SCSS
$custom: #562dab;
$custom-light: #8e6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#562dab",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 259.524,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4293,
    "c": 0.18689,
    "h": 291.3
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#562DAB
secondary
#A8C371
accent
#E246AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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