#562FAB#562FAB

#562FAB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.185 H 291.0°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#562FAB
RGBrgb(86, 47, 171)
HSLhsl(259, 57%, 43%)
HSVhsv(259, 73%, 67%)
CMYKcmyk(49.7%, 72.5%, 0%, 32.9%)
CIE-LABlab(31.70, 46.65, -60.07)
CIE-LCHlch(31.70, 76.06, 307.84°)
OKLaboklab(43.19% 0.0662 -0.1724)
OKLCHoklch(43.19% 0.185 291)
XYZxyz(12.2029, 6.9513, 39.2189)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FAB #84AB2F
analogous
#2F46AB #562FAB #942FAB
triadic
#562FAB #AB562F #2FAB56
tetradic
#562FAB #AB2F46 #84AB2F #2FAB94
square
#562FAB #AB2F46 #84AB2F #2FAB94
split-complementary
#562FAB #AB942F #46AB2F
monochromatic
#26154B #3E227B #562FAB #734ACD #987ADA

Accessibility & contrast

On white

8.79
#562FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#562FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FAB
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FAB#FFFFFF#000000##FFFFFF
##562FAB1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#3A506A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #562fab;
/* rgb */ color: rgb(86, 47, 171);
/* oklch */ color: oklch(43.2% 0.185 291.0);
Tailwind
colors: {
  custom: {
    50: '#8e6bc5',
    500: '#562fab',
    950: '#000000',
  },
}
SCSS
$custom: #562fab;
$custom-light: #8e6bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#562fab",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 258.871,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43185,
    "c": 0.18465,
    "h": 291
  },
  "luminance": 0.06952
}

Semantic roles & 50–950 ramp

primary
#562FAB
secondary
#AAC373
accent
#E048B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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