#562A90#562A90

#562A90 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.159 H 298.7°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#562A90
RGBrgb(86, 42, 144)
HSLhsl(266, 55%, 36%)
HSVhsv(266, 71%, 56%)
CMYKcmyk(40.3%, 70.8%, 0%, 43.5%)
CIE-LABlab(28.51, 41.81, -48.85)
CIE-LCHlch(28.51, 64.30, 310.56°)
OKLaboklab(40.21% 0.0764 -0.1394)
OKLCHoklch(40.21% 0.159 298.7)
XYZxyz(9.6985, 5.6478, 26.9593)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A90 #64902A
analogous
#2A3190 #562A90 #892A90
triadic
#562A90 #90562A #2A9056
tetradic
#562A90 #902A31 #64902A #2A9089
square
#562A90 #902A31 #64902A #2A9089
split-complementary
#562A90 #90892A #31902A
monochromatic
#1D0E31 #3A1C61 #562A90 #7238BF #9363D1

Accessibility & contrast

On white

9.86
#562A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A90
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A90#FFFFFF#000000##FFFFFF
##562A901.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004393
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#48435A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562a90;
/* rgb */ color: rgb(86, 42, 144);
/* oklch */ color: oklch(40.2% 0.159 298.7);
Tailwind
colors: {
  custom: {
    50: '#8b67b1',
    500: '#562a90',
    950: '#000000',
  },
}
SCSS
$custom: #562a90;
$custom-light: #8b67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#562a90",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 265.882,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40213,
    "c": 0.15899,
    "h": 298.7
  },
  "luminance": 0.05648
}

Semantic roles & 50–950 ramp

primary
#562A90
secondary
#91B75E
accent
#DE4A9E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562A90

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

Preview Lab → · Contrast checker → · Palette generator →

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