#562AB3#562AB3

#562AB3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.199 H 290.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#562AB3
RGBrgb(86, 42, 179)
HSLhsl(259, 62%, 43%)
HSVhsv(259, 77%, 70%)
CMYKcmyk(52%, 76.5%, 0%, 29.8%)
CIE-LABlab(31.55, 51.32, -65.08)
CIE-LCHlch(31.55, 82.88, 308.26°)
OKLaboklab(43.3% 0.0684 -0.187)
OKLCHoklch(43.3% 0.199 290.1)
XYZxyz(12.8001, 6.8885, 43.2942)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AB3 #87B32A
analogous
#2A42B3 #562AB3 #9A2AB3
triadic
#562AB3 #B3562A #2AB356
tetradic
#562AB3 #B32A42 #87B32A #2AB39A
square
#562AB3 #B32A42 #87B32A #2AB39A
split-complementary
#562AB3 #B39A2A #42B32A
monochromatic
#261350 #3E1E81 #562AB3 #7446D4 #9978DF

Accessibility & contrast

On white

8.83
#562AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#562AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AB3
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AB3#FFFFFF#000000##FFFFFF
##562AB31.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#34506D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562ab3;
/* rgb */ color: rgb(86, 42, 179);
/* oklch */ color: oklch(43.3% 0.199 290.1);
Tailwind
colors: {
  custom: {
    50: '#8f69cb',
    500: '#562ab3',
    950: '#000000',
  },
}
SCSS
$custom: #562ab3;
$custom-light: #8f69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#562ab3",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 259.27,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43304,
    "c": 0.19915,
    "h": 290.1
  },
  "luminance": 0.06889
}

Semantic roles & 50–950 ramp

primary
#562AB3
secondary
#ACC772
accent
#E543B1
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #562AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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