#562EA5#562EA5

#562EA5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.179 H 292.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#562EA5
RGBrgb(86, 46, 165)
HSLhsl(260, 56%, 41%)
HSVhsv(260, 72%, 65%)
CMYKcmyk(47.9%, 72.1%, 0%, 35.3%)
CIE-LABlab(30.99, 45.49, -57.61)
CIE-LCHlch(30.99, 73.40, 308.30°)
OKLaboklab(42.53% 0.0684 -0.1651)
OKLCHoklch(42.53% 0.179 292.5)
XYZxyz(11.6044, 6.6486, 36.2619)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EA5 #7DA52E
analogous
#2E42A5 #562EA5 #922EA5
triadic
#562EA5 #A5562E #2EA556
tetradic
#562EA5 #A52E42 #7DA52E #2EA592
square
#562EA5 #A52E42 #7DA52E #2EA592
split-complementary
#562EA5 #A5922E #42A52E
monochromatic
#241345 #3D2175 #562EA5 #7245CB #9675D8

Accessibility & contrast

On white

9.01
#562EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#562EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562EA5
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562EA5#FFFFFF#000000##FFFFFF
##562EA51.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#3E4D66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #562ea5;
/* rgb */ color: rgb(86, 46, 165);
/* oklch */ color: oklch(42.5% 0.179 292.5);
Tailwind
colors: {
  custom: {
    50: '#8d6ac1',
    500: '#562ea5',
    950: '#000000',
  },
}
SCSS
$custom: #562ea5;
$custom-light: #8d6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#562ea5",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 260.168,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42526,
    "c": 0.17875,
    "h": 292.5
  },
  "luminance": 0.06649
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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