#562AD4#562AD4

#562AD4 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.5% C 0.235 H 284.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#562AD4
RGBrgb(86, 42, 212)
HSLhsl(256, 67%, 50%)
HSVhsv(256, 80%, 83%)
CMYKcmyk(59.4%, 80.2%, 0%, 16.9%)
CIE-LABlab(34.78, 60.32, -79.13)
CIE-LCHlch(34.78, 99.50, 307.32°)
OKLaboklab(46.51% 0.0584 -0.2281)
OKLCHoklch(46.51% 0.235 284.4)
XYZxyz(16.5457, 8.3868, 63.0215)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AD4 #A8D42A
analogous
#2A53D4 #562AD4 #AB2AD4
triadic
#562AD4 #D4562A #2AD456
tetradic
#562AD4 #D42A53 #A8D42A #2AD4AB
square
#562AD4 #D42A53 #A8D42A #2AD4AB
split-complementary
#562AD4 #D4AB2A #53D42A
monochromatic
#2D166E #4120A1 #562AD4 #7E5CDF #A78FE9

Accessibility & contrast

On white

7.84
#562AD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#562AD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AD4
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AD4#FFFFFF#000000##FFFFFF
##562AD41.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D9
Deuteranopia (green-blind)
#004CD1
Tritanopia (blue-blind)
#005E80
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #562ad4;
/* rgb */ color: rgb(86, 42, 212);
/* oklch */ color: oklch(46.5% 0.235 284.4);
Tailwind
colors: {
  custom: {
    50: '#956be3',
    500: '#562ad4',
    950: '#000000',
  },
}
SCSS
$custom: #562ad4;
$custom-light: #956be3;
$custom-dark: #000000;
JSON
{
  "hex": "#562ad4",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 212
  },
  "hsl": {
    "h": 255.529,
    "s": 66.929,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46514,
    "c": 0.23546,
    "h": 284.4
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#562AD4
secondary
#BFD386
accent
#EA3EBD
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #562AD4

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

Preview Lab → · Contrast checker → · Palette generator →

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