#562CD4#562CD4

#562CD4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.7% C 0.234 H 284.2°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#562CD4
RGBrgb(86, 44, 212)
HSLhsl(255, 66%, 50%)
HSVhsv(255, 79%, 83%)
CMYKcmyk(59.4%, 79.2%, 0%, 16.9%)
CIE-LABlab(35.07, 59.47, -78.65)
CIE-LCHlch(35.07, 98.60, 307.09°)
OKLaboklab(46.72% 0.0573 -0.2267)
OKLCHoklch(46.72% 0.234 284.2)
XYZxyz(16.6184, 8.5322, 63.0458)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562CD4 #AAD42C
analogous
#2C56D4 #562CD4 #AA2CD4
triadic
#562CD4 #D4562C #2CD456
tetradic
#562CD4 #D42C56 #AAD42C #2CD4AA
square
#562CD4 #D42C56 #AAD42C #2CD4AA
split-complementary
#562CD4 #D4AA2C #56D42C
monochromatic
#2D176F #4121A2 #562CD4 #7F5FDE #A792E9

Accessibility & contrast

On white

7.76
#562CD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#562CD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562CD4
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562CD4#FFFFFF#000000##FFFFFF
##562CD41.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562cd4;
/* rgb */ color: rgb(86, 44, 212);
/* oklch */ color: oklch(46.7% 0.234 284.2);
Tailwind
colors: {
  custom: {
    50: '#946ce3',
    500: '#562cd4',
    950: '#000000',
  },
}
SCSS
$custom: #562cd4;
$custom-light: #946ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#562cd4",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 212
  },
  "hsl": {
    "h": 255,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46716,
    "c": 0.23384,
    "h": 284.2
  },
  "luminance": 0.08533
}

Semantic roles & 50–950 ramp

primary
#562CD4
secondary
#C1D388
accent
#E93FBE
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #562CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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