#562BA1#562BA1

#562BA1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.178 H 293.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#562BA1
RGBrgb(86, 43, 161)
HSLhsl(262, 58%, 40%)
HSVhsv(262, 73%, 63%)
CMYKcmyk(46.6%, 73.3%, 0%, 36.9%)
CIE-LABlab(30.11, 45.91, -56.64)
CIE-LCHlch(30.11, 72.91, 309.02°)
OKLaboklab(41.79% 0.0721 -0.1623)
OKLCHoklch(41.79% 0.178 293.9)
XYZxyz(11.1329, 6.2791, 34.3367)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BA1 #76A12B
analogous
#2B3BA1 #562BA1 #912BA1
triadic
#562BA1 #A1562B #2BA156
tetradic
#562BA1 #A12B3B #76A12B #2BA191
square
#562BA1 #A12B3B #76A12B #2BA191
split-complementary
#562BA1 #A1912B #3BA12B
monochromatic
#221140 #3C1E71 #562BA1 #713ECB #956ED8

Accessibility & contrast

On white

9.31
#562BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#562BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BA1
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BA1#FFFFFF#000000##FFFFFF
##562BA11.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#404A63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562ba1;
/* rgb */ color: rgb(86, 43, 161);
/* oklch */ color: oklch(41.8% 0.178 293.9);
Tailwind
colors: {
  custom: {
    50: '#8d68be',
    500: '#562ba1',
    950: '#000000',
  },
}
SCSS
$custom: #562ba1;
$custom-light: #8d68be;
$custom-dark: #000000;
JSON
{
  "hex": "#562ba1",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 261.864,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.41791,
    "c": 0.17757,
    "h": 293.9
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#562BA1
secondary
#A0BF69
accent
#E147A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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