#562DB5#562DB5

#562DB5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.198 H 289.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#562DB5
RGBrgb(86, 45, 181)
HSLhsl(258, 60%, 44%)
HSVhsv(258, 75%, 71%)
CMYKcmyk(52.5%, 75.1%, 0%, 29%)
CIE-LABlab(32.24, 50.45, -65.15)
CIE-LCHlch(32.24, 82.40, 307.75°)
OKLaboklab(43.84% 0.0655 -0.1872)
OKLCHoklch(43.84% 0.198 289.3)
XYZxyz(13.1142, 7.1908, 44.4041)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DB5 #8CB52D
analogous
#2D48B5 #562DB5 #9A2DB5
triadic
#562DB5 #B5562D #2DB556
tetradic
#562DB5 #B52D48 #8CB52D #2DB59A
square
#562DB5 #B52D48 #8CB52D #2DB59A
split-complementary
#562DB5 #B59A2D #48B52D
monochromatic
#271553 #3F2184 #562DB5 #754DD3 #9B7EDF

Accessibility & contrast

On white

8.61
#562DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#562DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562DB5
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DB5#FFFFFF#000000##FFFFFF
##562DB51.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#32526F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #562db5;
/* rgb */ color: rgb(86, 45, 181);
/* oklch */ color: oklch(43.8% 0.198 289.3);
Tailwind
colors: {
  custom: {
    50: '#8f6acc',
    500: '#562db5',
    950: '#000000',
  },
}
SCSS
$custom: #562db5;
$custom-light: #8f6acc;
$custom-dark: #000000;
JSON
{
  "hex": "#562db5",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 258.088,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43841,
    "c": 0.19838,
    "h": 289.3
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#562DB5
secondary
#AFC776
accent
#E344B3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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