#562DB6#562DB6

#562DB6 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.200 H 289.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#562DB6
RGBrgb(86, 45, 182)
HSLhsl(258, 60%, 45%)
HSVhsv(258, 75%, 71%)
CMYKcmyk(52.7%, 75.3%, 0%, 28.6%)
CIE-LABlab(32.33, 50.73, -65.59)
CIE-LCHlch(32.33, 82.92, 307.72°)
OKLaboklab(43.93% 0.0652 -0.1885)
OKLCHoklch(43.93% 0.2 289.1)
XYZxyz(13.2172, 7.2320, 44.9464)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DB6 #8DB62D
analogous
#2D49B6 #562DB6 #9A2DB6
triadic
#562DB6 #B6562D #2DB656
tetradic
#562DB6 #B62D49 #8DB62D #2DB69A
square
#562DB6 #B62D49 #8DB62D #2DB69A
split-complementary
#562DB6 #B69A2D #49B62D
monochromatic
#281554 #3F2185 #562DB6 #754DD3 #9B7EDF

Accessibility & contrast

On white

8.58
#562DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#562DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DB6
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DB6#FFFFFF#000000##FFFFFF
##562DB61.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#315370
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #562db6;
/* rgb */ color: rgb(86, 45, 182);
/* oklch */ color: oklch(43.9% 0.200 289.1);
Tailwind
colors: {
  custom: {
    50: '#906acd',
    500: '#562db6',
    950: '#000000',
  },
}
SCSS
$custom: #562db6;
$custom-light: #906acd;
$custom-dark: #000000;
JSON
{
  "hex": "#562db6",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 257.956,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43934,
    "c": 0.19952,
    "h": 289.1
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#562DB6
secondary
#B0C877
accent
#E344B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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