#562DB4#562DB4

#562DB4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.197 H 289.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#562DB4
RGBrgb(86, 45, 180)
HSLhsl(258, 60%, 44%)
HSVhsv(258, 75%, 71%)
CMYKcmyk(52.2%, 75%, 0%, 29.4%)
CIE-LABlab(32.15, 50.17, -64.70)
CIE-LCHlch(32.15, 81.87, 307.79°)
OKLaboklab(43.75% 0.0658 -0.1859)
OKLCHoklch(43.75% 0.197 289.5)
XYZxyz(13.0120, 7.1499, 43.8656)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DB4 #8BB42D
analogous
#2D48B4 #562DB4 #9A2DB4
triadic
#562DB4 #B4562D #2DB456
tetradic
#562DB4 #B42D48 #8BB42D #2DB49A
square
#562DB4 #B42D48 #8BB42D #2DB49A
split-complementary
#562DB4 #B49A2D #48B42D
monochromatic
#271552 #3F2183 #562DB4 #754CD2 #9B7DDE

Accessibility & contrast

On white

8.64
#562DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#562DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DB4
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DB4#FFFFFF#000000##FFFFFF
##562DB41.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#33526E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #562db4;
/* rgb */ color: rgb(86, 45, 180);
/* oklch */ color: oklch(43.7% 0.197 289.5);
Tailwind
colors: {
  custom: {
    50: '#8f6acc',
    500: '#562db4',
    950: '#000000',
  },
}
SCSS
$custom: #562db4;
$custom-light: #8f6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#562db4",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 258.222,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43749,
    "c": 0.19724,
    "h": 289.5
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#562DB4
secondary
#AEC776
accent
#E345B3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #562DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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