#562DA9#562DA9

#562DA9 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.185 H 291.8°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#562DA9
RGBrgb(86, 45, 169)
HSLhsl(260, 58%, 42%)
HSVhsv(260, 73%, 66%)
CMYKcmyk(49.1%, 73.4%, 0%, 33.7%)
CIE-LABlab(31.16, 47.11, -59.74)
CIE-LCHlch(31.16, 76.08, 308.26°)
OKLaboklab(42.75% 0.0684 -0.1714)
OKLCHoklch(42.75% 0.185 291.8)
XYZxyz(11.9356, 6.7193, 38.1965)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DA9 #80A92D
analogous
#2D42A9 #562DA9 #942DA9
triadic
#562DA9 #A9562D #2DA956
tetradic
#562DA9 #A92D42 #80A92D #2DA994
square
#562DA9 #A92D42 #80A92D #2DA994
split-complementary
#562DA9 #A9942D #42A92D
monochromatic
#251348 #3D2079 #562DA9 #7346CE #9776DA

Accessibility & contrast

On white

8.96
#562DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562DA9
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DA9#FFFFFF#000000##FFFFFF
##562DA91.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#3B4E68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562da9;
/* rgb */ color: rgb(86, 45, 169);
/* oklch */ color: oklch(42.8% 0.185 291.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ac4',
    500: '#562da9',
    950: '#000000',
  },
}
SCSS
$custom: #562da9;
$custom-light: #8e6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#562da9",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 259.839,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42751,
    "c": 0.18456,
    "h": 291.8
  },
  "luminance": 0.0672
}

Semantic roles & 50–950 ramp

primary
#562DA9
secondary
#A7C26F
accent
#E147AE
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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