#562FA4#562FA4

#562FA4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.176 H 292.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#562FA4
RGBrgb(86, 47, 164)
HSLhsl(260, 55%, 41%)
HSVhsv(260, 71%, 64%)
CMYKcmyk(47.6%, 71.3%, 0%, 35.7%)
CIE-LABlab(31.09, 44.69, -56.84)
CIE-LCHlch(31.09, 72.31, 308.18°)
OKLaboklab(42.57% 0.0677 -0.1629)
OKLCHoklch(42.57% 0.176 292.6)
XYZxyz(11.5532, 6.6914, 35.7976)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FA4 #7DA42F
analogous
#2F43A4 #562FA4 #912FA4
triadic
#562FA4 #A4562F #2FA456
tetradic
#562FA4 #A42F43 #7DA42F #2FA491
square
#562FA4 #A42F43 #7DA42F #2FA491
split-complementary
#562FA4 #A4912F #43A42F
monochromatic
#241445 #3D2174 #562FA4 #7246CA #9676D8

Accessibility & contrast

On white

8.98
#562FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#562FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FA4
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FA4#FFFFFF#000000##FFFFFF
##562FA41.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#3E4D66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562fa4;
/* rgb */ color: rgb(86, 47, 164);
/* oklch */ color: oklch(42.6% 0.176 292.6);
Tailwind
colors: {
  custom: {
    50: '#8d6bc0',
    500: '#562fa4',
    950: '#000000',
  },
}
SCSS
$custom: #562fa4;
$custom-light: #8d6bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#562fa4",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 260,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42571,
    "c": 0.17639,
    "h": 292.6
  },
  "luminance": 0.06692
}

Semantic roles & 50–950 ramp

primary
#562FA4
secondary
#A5C06F
accent
#DF49AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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