#562A8E#562A8E

#562A8E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.157 H 299.3°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#562A8E
RGBrgb(86, 42, 142)
HSLhsl(266, 54%, 36%)
HSVhsv(266, 70%, 56%)
CMYKcmyk(39.4%, 70.4%, 0%, 44.3%)
CIE-LABlab(28.35, 41.28, -47.88)
CIE-LCHlch(28.35, 63.21, 310.77°)
OKLaboklab(40.05% 0.0768 -0.1365)
OKLCHoklch(40.05% 0.157 299.3)
XYZxyz(9.5470, 5.5872, 26.1614)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A8E #628E2A
analogous
#2A308E #562A8E #882A8E
triadic
#562A8E #8E562A #2A8E56
tetradic
#562A8E #8E2A30 #628E2A #2A8E88
square
#562A8E #8E2A30 #628E2A #2A8E88
split-complementary
#562A8E #8E882A #308E2A
monochromatic
#1D0E30 #391C5F #562A8E #7338BD #9362D1

Accessibility & contrast

On white

9.92
#562A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#562A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A8E
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A8E#FFFFFF#000000##FFFFFF
##562A8E1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#494258
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562a8e;
/* rgb */ color: rgb(86, 42, 142);
/* oklch */ color: oklch(40.0% 0.157 299.3);
Tailwind
colors: {
  custom: {
    50: '#8b67b0',
    500: '#562a8e',
    950: '#000000',
  },
}
SCSS
$custom: #562a8e;
$custom-light: #8b67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#562a8e",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 266.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40049,
    "c": 0.15664,
    "h": 299.3
  },
  "luminance": 0.05587
}

Semantic roles & 50–950 ramp

primary
#562A8E
secondary
#8FB65D
accent
#DE4A9D
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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