#562A8F#562A8F

#562A8F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.158 H 299.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#562A8F
RGBrgb(86, 42, 143)
HSLhsl(266, 55%, 36%)
HSVhsv(266, 71%, 56%)
CMYKcmyk(39.9%, 70.6%, 0%, 43.9%)
CIE-LABlab(28.43, 41.54, -48.37)
CIE-LCHlch(28.43, 63.76, 310.66°)
OKLaboklab(40.13% 0.0766 -0.138)
OKLCHoklch(40.13% 0.158 299)
XYZxyz(9.6224, 5.6174, 26.5586)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A8F #638F2A
analogous
#2A308F #562A8F #892A8F
triadic
#562A8F #8F562A #2A8F56
tetradic
#562A8F #8F2A30 #638F2A #2A8F89
square
#562A8F #8F2A30 #638F2A #2A8F89
split-complementary
#562A8F #8F892A #308F2A
monochromatic
#1D0E30 #3A1C60 #562A8F #7238BE #9362D1

Accessibility & contrast

On white

9.89
#562A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562A8F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A8F#FFFFFF#000000##FFFFFF
##562A8F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#494259
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562a8f;
/* rgb */ color: rgb(86, 42, 143);
/* oklch */ color: oklch(40.1% 0.158 299.0);
Tailwind
colors: {
  custom: {
    50: '#8b67b1',
    500: '#562a8f',
    950: '#000000',
  },
}
SCSS
$custom: #562a8f;
$custom-light: #8b67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#562a8f",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 266.139,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40131,
    "c": 0.1578,
    "h": 299
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#562A8F
secondary
#90B75E
accent
#DE4A9D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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