#562EB5#562EB5

#562EB5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.197 H 289.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#562EB5
RGBrgb(86, 46, 181)
HSLhsl(258, 59%, 45%)
HSVhsv(258, 75%, 71%)
CMYKcmyk(52.5%, 74.6%, 0%, 29%)
CIE-LABlab(32.41, 49.96, -64.86)
CIE-LCHlch(32.41, 81.87, 307.60°)
OKLaboklab(43.96% 0.0647 -0.1864)
OKLCHoklch(43.96% 0.197 289.1)
XYZxyz(13.1528, 7.2680, 44.4169)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EB5 #8DB52E
analogous
#2E4AB5 #562EB5 #9A2EB5
triadic
#562EB5 #B5562E #2EB556
tetradic
#562EB5 #B52E4A #8DB52E #2EB59A
square
#562EB5 #B52E4A #8DB52E #2EB59A
split-complementary
#562EB5 #B59A2E #4AB52E
monochromatic
#281553 #3F2284 #562EB5 #754ED2 #9B7FDE

Accessibility & contrast

On white

8.56
#562EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562EB5
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562EB5#FFFFFF#000000##FFFFFF
##562EB51.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#32536F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #562eb5;
/* rgb */ color: rgb(86, 46, 181);
/* oklch */ color: oklch(44.0% 0.197 289.1);
Tailwind
colors: {
  custom: {
    50: '#8f6bcc',
    500: '#562eb5',
    950: '#000000',
  },
}
SCSS
$custom: #562eb5;
$custom-light: #8f6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#562eb5",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 257.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43963,
    "c": 0.19734,
    "h": 289.1
  },
  "luminance": 0.07269
}

Semantic roles & 50–950 ramp

primary
#562EB5
secondary
#B0C778
accent
#E345B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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