#562AA1#562AA1

#562AA1 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.179 H 294.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#562AA1
RGBrgb(86, 42, 161)
HSLhsl(262, 59%, 40%)
HSVhsv(262, 74%, 63%)
CMYKcmyk(46.6%, 73.9%, 0%, 36.9%)
CIE-LABlab(29.93, 46.41, -56.93)
CIE-LCHlch(29.93, 73.45, 309.19°)
OKLaboklab(41.67% 0.073 -0.1631)
OKLCHoklch(41.67% 0.179 294.1)
XYZxyz(11.0970, 6.2072, 34.3247)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AA1 #75A12A
analogous
#2A39A1 #562AA1 #922AA1
triadic
#562AA1 #A1562A #2AA156
tetradic
#562AA1 #A12A39 #75A12A #2AA192
square
#562AA1 #A12A39 #75A12A #2AA192
split-complementary
#562AA1 #A1922A #39A12A
monochromatic
#221140 #3C1D70 #562AA1 #713CCC #956DD9

Accessibility & contrast

On white

9.37
#562AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#562AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AA1
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AA1#FFFFFF#000000##FFFFFF
##562AA11.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#404963
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562aa1;
/* rgb */ color: rgb(86, 42, 161);
/* oklch */ color: oklch(41.7% 0.179 294.1);
Tailwind
colors: {
  custom: {
    50: '#8d68be',
    500: '#562aa1',
    950: '#000000',
  },
}
SCSS
$custom: #562aa1;
$custom-light: #8d68be;
$custom-dark: #000000;
JSON
{
  "hex": "#562aa1",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 262.185,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.17871,
    "h": 294.1
  },
  "luminance": 0.06208
}

Semantic roles & 50–950 ramp

primary
#562AA1
secondary
#9FC067
accent
#E246A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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