#562CA5#562CA5

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

Color values

HEX#562CA5
RGBrgb(86, 44, 165)
HSLhsl(261, 58%, 41%)
HSVhsv(261, 73%, 65%)
CMYKcmyk(47.9%, 73.3%, 0%, 35.3%)
CIE-LABlab(30.63, 46.51, -58.20)
CIE-LCHlch(30.63, 74.50, 308.63°)
OKLaboklab(42.27% 0.0702 -0.1669)
OKLCHoklch(42.27% 0.181 292.8)
XYZxyz(11.5281, 6.4960, 36.2365)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562CA5 #7BA52C
analogous
#2C3FA5 #562CA5 #922CA5
triadic
#562CA5 #A5562C #2CA556
tetradic
#562CA5 #A52C3F #7BA52C #2CA592
square
#562CA5 #A52C3F #7BA52C #2CA592
split-complementary
#562CA5 #A5922C #3FA52C
monochromatic
#241244 #3D1F75 #562CA5 #7242CD #9672D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562CA5#FFFFFF#000000##FFFFFF
##562CA51.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)
#004AA9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#3E4C66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562ca5;
/* rgb */ color: rgb(86, 44, 165);
/* oklch */ color: oklch(42.3% 0.181 292.8);
Tailwind
colors: {
  custom: {
    50: '#8d69c1',
    500: '#562ca5',
    950: '#000000',
  },
}
SCSS
$custom: #562ca5;
$custom-light: #8d69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#562ca5",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 260.826,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42269,
    "c": 0.18106,
    "h": 292.8
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#562CA5
secondary
#A3C16C
accent
#E147AC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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