#562BAC#562BAC

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

Color values

HEX#562BAC
RGBrgb(86, 43, 172)
HSLhsl(260, 60%, 42%)
HSVhsv(260, 75%, 67%)
CMYKcmyk(50%, 75%, 0%, 32.5%)
CIE-LABlab(31.08, 48.93, -61.68)
CIE-LCHlch(31.08, 78.73, 308.42°)
OKLaboklab(42.78% 0.0694 -0.1771)
OKLCHoklch(42.78% 0.19 291.4)
XYZxyz(12.1459, 6.6843, 39.6720)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BAC #81AC2B
analogous
#2B41AC #562BAC #972BAC
triadic
#562BAC #AC562B #2BAC56
tetradic
#562BAC #AC2B41 #81AC2B #2BAC97
square
#562BAC #AC2B41 #81AC2B #2BAC97
split-complementary
#562BAC #AC972B #41AC2B
monochromatic
#25134A #3E1F7B #562BAC #7344D0 #9775DC

Accessibility & contrast

On white

8.99
#562BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562BAC
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BAC#FFFFFF#000000##FFFFFF
##562BAC1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#394E69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562bac;
/* rgb */ color: rgb(86, 43, 172);
/* oklch */ color: oklch(42.8% 0.190 291.4);
Tailwind
colors: {
  custom: {
    50: '#8e69c6',
    500: '#562bac',
    950: '#000000',
  },
}
SCSS
$custom: #562bac;
$custom-light: #8e69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#562bac",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42775,
    "c": 0.1902,
    "h": 291.4
  },
  "luminance": 0.06685
}

Semantic roles & 50–950 ramp

primary
#562BAC
secondary
#A8C46F
accent
#E345AE
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #562BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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