#562AA8#562AA8

#562AA8 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.187 H 292.4°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#562AA8
RGBrgb(86, 42, 168)
HSLhsl(261, 60%, 41%)
HSVhsv(261, 75%, 66%)
CMYKcmyk(48.8%, 75%, 0%, 34.1%)
CIE-LABlab(30.55, 48.31, -60.15)
CIE-LCHlch(30.55, 77.15, 308.77°)
OKLaboklab(42.29% 0.0713 -0.1726)
OKLCHoklch(42.29% 0.187 292.4)
XYZxyz(11.7316, 6.4611, 37.6672)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AA8 #7CA82A
analogous
#2A3DA8 #562AA8 #952AA8
triadic
#562AA8 #A8562A #2AA856
tetradic
#562AA8 #A82A3D #7CA82A #2AA895
square
#562AA8 #A82A3D #7CA82A #2AA895
split-complementary
#562AA8 #A8952A #3DA82A
monochromatic
#241246 #3D1E77 #562AA8 #7240CF #9671DB

Accessibility & contrast

On white

9.16
#562AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#562AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AA8
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AA8#FFFFFF#000000##FFFFFF
##562AA81.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#3C4C67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #562aa8;
/* rgb */ color: rgb(86, 42, 168);
/* oklch */ color: oklch(42.3% 0.187 292.4);
Tailwind
colors: {
  custom: {
    50: '#8e68c3',
    500: '#562aa8',
    950: '#000000',
  },
}
SCSS
$custom: #562aa8;
$custom-light: #8e68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#562aa8",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 260.952,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42292,
    "c": 0.18672,
    "h": 292.4
  },
  "luminance": 0.06462
}

Semantic roles & 50–950 ramp

primary
#562AA8
secondary
#A4C36B
accent
#E345AC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #562AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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