#562EA6#562EA6

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

Color values

HEX#562EA6
RGBrgb(86, 46, 166)
HSLhsl(260, 57%, 42%)
HSVhsv(260, 72%, 65%)
CMYKcmyk(48.2%, 72.3%, 0%, 34.9%)
CIE-LABlab(31.08, 45.77, -58.07)
CIE-LCHlch(31.08, 73.94, 308.24°)
OKLaboklab(42.61% 0.0682 -0.1665)
OKLCHoklch(42.61% 0.18 292.3)
XYZxyz(11.6958, 6.6852, 36.7431)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EA6 #7EA62E
analogous
#2E42A6 #562EA6 #922EA6
triadic
#562EA6 #A6562E #2EA656
tetradic
#562EA6 #A62E42 #7EA62E #2EA692
square
#562EA6 #A62E42 #7EA62E #2EA692
split-complementary
#562EA6 #A6922E #42A62E
monochromatic
#241346 #3D2176 #562EA6 #7246CC #9776D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562EA6#FFFFFF#000000##FFFFFF
##562EA61.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)
#004BAA
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#3D4D67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562ea6;
/* rgb */ color: rgb(86, 46, 166);
/* oklch */ color: oklch(42.6% 0.180 292.3);
Tailwind
colors: {
  custom: {
    50: '#8d6ac1',
    500: '#562ea6',
    950: '#000000',
  },
}
SCSS
$custom: #562ea6;
$custom-light: #8d6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#562ea6",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 260,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42614,
    "c": 0.17993,
    "h": 292.3
  },
  "luminance": 0.06686
}

Semantic roles & 50–950 ramp

primary
#562EA6
secondary
#A6C16F
accent
#E048AD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #562EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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