#562CAB#562CAB

#562CAB is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.188 H 291.5°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#562CAB
RGBrgb(86, 44, 171)
HSLhsl(260, 59%, 42%)
HSVhsv(260, 74%, 67%)
CMYKcmyk(49.7%, 74.3%, 0%, 32.9%)
CIE-LABlab(31.16, 48.16, -60.94)
CIE-LCHlch(31.16, 77.68, 308.32°)
OKLaboklab(42.81% 0.0688 -0.1749)
OKLCHoklch(42.81% 0.188 291.5)
XYZxyz(12.0870, 6.7196, 39.1803)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562CAB #81AB2C
analogous
#2C41AB #562CAB #962CAB
triadic
#562CAB #AB562C #2CAB56
tetradic
#562CAB #AB2C41 #81AB2C #2CAB96
square
#562CAB #AB2C41 #81AB2C #2CAB96
split-complementary
#562CAB #AB962C #41AB2C
monochromatic
#25134A #3E1F7A #562CAB #7345CF #9776DC

Accessibility & contrast

On white

8.96
#562CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#562CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562CAB
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562CAB#FFFFFF#000000##FFFFFF
##562CAB1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#3A4E69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562cab;
/* rgb */ color: rgb(86, 44, 171);
/* oklch */ color: oklch(42.8% 0.188 291.5);
Tailwind
colors: {
  custom: {
    50: '#8e69c5',
    500: '#562cab',
    950: '#000000',
  },
}
SCSS
$custom: #562cab;
$custom-light: #8e69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#562cab",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 259.843,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.18798,
    "h": 291.5
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

primary
#562CAB
secondary
#A8C36F
accent
#E246AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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