#562DA8#562DA8

#562DA8 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.183 H 292.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#562DA8
RGBrgb(86, 45, 168)
HSLhsl(260, 58%, 42%)
HSVhsv(260, 73%, 66%)
CMYKcmyk(48.8%, 73.2%, 0%, 34.1%)
CIE-LABlab(31.07, 46.83, -59.29)
CIE-LCHlch(31.07, 75.55, 308.31°)
OKLaboklab(42.66% 0.0687 -0.1701)
OKLCHoklch(42.66% 0.183 292)
XYZxyz(11.8420, 6.6819, 37.7040)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562DA8 #7FA82D
analogous
#2D42A8 #562DA8 #942DA8
triadic
#562DA8 #A8562D #2DA856
tetradic
#562DA8 #A82D42 #7FA82D #2DA894
square
#562DA8 #A82D42 #7FA82D #2DA894
split-complementary
#562DA8 #A8942D #42A82D
monochromatic
#251347 #3D2078 #562DA8 #7245CD #9775DA

Accessibility & contrast

On white

8.99
#562DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562DA8
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562DA8#FFFFFF#000000##FFFFFF
##562DA81.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#3C4D68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562da8;
/* rgb */ color: rgb(86, 45, 168);
/* oklch */ color: oklch(42.7% 0.183 292.0);
Tailwind
colors: {
  custom: {
    50: '#8e6ac3',
    500: '#562da8',
    950: '#000000',
  },
}
SCSS
$custom: #562da8;
$custom-light: #8e6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#562da8",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 260,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42662,
    "c": 0.18341,
    "h": 292
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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