#562BB2#562BB2

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

Color values

HEX#562BB2
RGBrgb(86, 43, 178)
HSLhsl(259, 61%, 43%)
HSVhsv(259, 76%, 70%)
CMYKcmyk(51.7%, 75.8%, 0%, 30.2%)
CIE-LABlab(31.62, 50.58, -64.37)
CIE-LCHlch(31.62, 81.86, 308.16°)
OKLaboklab(43.33% 0.0679 -0.185)
OKLCHoklch(43.33% 0.197 290.2)
XYZxyz(12.7352, 6.9200, 42.7755)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BB2 #87B22B
analogous
#2B43B2 #562BB2 #992BB2
triadic
#562BB2 #B2562B #2BB256
tetradic
#562BB2 #B22B43 #87B22B #2BB299
square
#562BB2 #B22B43 #87B22B #2BB299
split-complementary
#562BB2 #B2992B #43B22B
monochromatic
#26134F #3E1F81 #562BB2 #7448D3 #9979DF

Accessibility & contrast

On white

8.81
#562BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562BB2
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BB2#FFFFFF#000000##FFFFFF
##562BB21.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#35506D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562bb2;
/* rgb */ color: rgb(86, 43, 178);
/* oklch */ color: oklch(43.3% 0.197 290.2);
Tailwind
colors: {
  custom: {
    50: '#8f69ca',
    500: '#562bb2',
    950: '#000000',
  },
}
SCSS
$custom: #562bb2;
$custom-light: #8f69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#562bb2",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 259.111,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43327,
    "c": 0.19702,
    "h": 290.2
  },
  "luminance": 0.06921
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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