#562AB5#562AB5

#562AB5 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.201 H 289.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#562AB5
RGBrgb(86, 42, 181)
HSLhsl(259, 62%, 44%)
HSVhsv(259, 77%, 71%)
CMYKcmyk(52.5%, 76.8%, 0%, 29%)
CIE-LABlab(31.74, 51.87, -65.97)
CIE-LCHlch(31.74, 83.92, 308.18°)
OKLaboklab(43.49% 0.0678 -0.1896)
OKLCHoklch(43.49% 0.201 289.7)
XYZxyz(13.0038, 6.9700, 44.3673)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AB5 #89B52A
analogous
#2A43B5 #562AB5 #9B2AB5
triadic
#562AB5 #B5562A #2AB556
tetradic
#562AB5 #B52A43 #89B52A #2AB59B
square
#562AB5 #B52A43 #89B52A #2AB59B
split-complementary
#562AB5 #B59B2A #43B52A
monochromatic
#271352 #3E1E83 #562AB5 #7448D4 #9A79E0

Accessibility & contrast

On white

8.77
#562AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#562AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AB5
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AB5#FFFFFF#000000##FFFFFF
##562AB51.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#32516E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #562ab5;
/* rgb */ color: rgb(86, 42, 181);
/* oklch */ color: oklch(43.5% 0.201 289.7);
Tailwind
colors: {
  custom: {
    50: '#9069cc',
    500: '#562ab5',
    950: '#000000',
  },
}
SCSS
$custom: #562ab5;
$custom-light: #9069cc;
$custom-dark: #000000;
JSON
{
  "hex": "#562ab5",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 258.993,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43492,
    "c": 0.20139,
    "h": 289.7
  },
  "luminance": 0.06971
}

Semantic roles & 50–950 ramp

primary
#562AB5
secondary
#ADC873
accent
#E542B2
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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