#562DB9#562DB9

#562DB9 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.203 H 288.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#562DB9
RGBrgb(86, 45, 185)
HSLhsl(258, 61%, 45%)
HSVhsv(258, 76%, 73%)
CMYKcmyk(53.5%, 75.7%, 0%, 27.5%)
CIE-LABlab(32.61, 51.56, -66.91)
CIE-LCHlch(32.61, 84.47, 307.62°)
OKLaboklab(44.21% 0.0645 -0.1924)
OKLCHoklch(44.21% 0.203 288.5)
XYZxyz(13.5305, 7.3573, 46.5967)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DB9 #90B92D
analogous
#2D4AB9 #562DB9 #9C2DB9
triadic
#562DB9 #B9562D #2DB956
tetradic
#562DB9 #B92D4A #90B92D #2DB99C
square
#562DB9 #B92D4A #90B92D #2DB99C
split-complementary
#562DB9 #B99C2D #4AB92D
monochromatic
#281557 #3F2188 #562DB9 #764FD4 #9C80E0

Accessibility & contrast

On white

8.50
#562DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#562DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DB9
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DB9#FFFFFF#000000##FFFFFF
##562DB91.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#2F5471
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #562db9;
/* rgb */ color: rgb(86, 45, 185);
/* oklch */ color: oklch(44.2% 0.203 288.5);
Tailwind
colors: {
  custom: {
    50: '#906bcf',
    500: '#562db9',
    950: '#000000',
  },
}
SCSS
$custom: #562db9;
$custom-light: #906bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#562db9",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 257.571,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44214,
    "c": 0.20293,
    "h": 288.5
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#562DB9
secondary
#B2C979
accent
#E444B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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