#562BA4#562BA4

#562BA4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.181 H 293.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#562BA4
RGBrgb(86, 43, 164)
HSLhsl(261, 58%, 41%)
HSVhsv(261, 74%, 64%)
CMYKcmyk(47.6%, 73.8%, 0%, 35.7%)
CIE-LABlab(30.37, 46.73, -58.03)
CIE-LCHlch(30.37, 74.50, 308.84°)
OKLaboklab(42.06% 0.0714 -0.1664)
OKLCHoklch(42.06% 0.181 293.2)
XYZxyz(11.4006, 6.3862, 35.7467)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BA4 #79A42B
analogous
#2B3DA4 #562BA4 #922BA4
triadic
#562BA4 #A4562B #2BA456
tetradic
#562BA4 #A42B3D #79A42B #2BA492
square
#562BA4 #A42B3D #79A42B #2BA492
split-complementary
#562BA4 #A4922B #3DA42B
monochromatic
#231243 #3D1E74 #562BA4 #723FCD #9570D9

Accessibility & contrast

On white

9.22
#562BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#562BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BA4
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BA4#FFFFFF#000000##FFFFFF
##562BA41.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#3E4B65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562ba4;
/* rgb */ color: rgb(86, 43, 164);
/* oklch */ color: oklch(42.1% 0.181 293.2);
Tailwind
colors: {
  custom: {
    50: '#8d69c0',
    500: '#562ba4',
    950: '#000000',
  },
}
SCSS
$custom: #562ba4;
$custom-light: #8d69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#562ba4",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 261.322,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42056,
    "c": 0.18104,
    "h": 293.2
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#562BA4
secondary
#A2C16A
accent
#E246AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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