#562EA1#562EA1

#562EA1 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.174 H 293.4°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#562EA1
RGBrgb(86, 46, 161)
HSLhsl(261, 56%, 41%)
HSVhsv(261, 71%, 63%)
CMYKcmyk(46.6%, 71.4%, 0%, 36.9%)
CIE-LABlab(30.65, 44.37, -55.75)
CIE-LCHlch(30.65, 71.25, 308.52°)
OKLaboklab(42.18% 0.0692 -0.1597)
OKLCHoklch(42.18% 0.174 293.4)
XYZxyz(11.2460, 6.5053, 34.3744)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EA1 #79A12E
analogous
#2E3FA1 #562EA1 #902EA1
triadic
#562EA1 #A1562E #2EA156
tetradic
#562EA1 #A12E3F #79A12E #2EA190
square
#562EA1 #A12E3F #79A12E #2EA190
split-complementary
#562EA1 #A1902E #3FA12E
monochromatic
#231342 #3D2071 #562EA1 #7243C9 #9573D7

Accessibility & contrast

On white

9.13
#562EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#562EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562EA1
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562EA1#FFFFFF#000000##FFFFFF
##562EA11.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#404B64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562ea1;
/* rgb */ color: rgb(86, 46, 161);
/* oklch */ color: oklch(42.2% 0.174 293.4);
Tailwind
colors: {
  custom: {
    50: '#8d6abe',
    500: '#562ea1',
    950: '#000000',
  },
}
SCSS
$custom: #562ea1;
$custom-light: #8d6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#562ea1",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 260.87,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42179,
    "c": 0.17403,
    "h": 293.4
  },
  "luminance": 0.06506
}

Semantic roles & 50–950 ramp

primary
#562EA1
secondary
#A2BE6C
accent
#DF49AB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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