#562A91#562A91

#562A91 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.160 H 298.4°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#562A91
RGBrgb(86, 42, 145)
HSLhsl(266, 55%, 37%)
HSVhsv(266, 71%, 57%)
CMYKcmyk(40.7%, 71%, 0%, 43.1%)
CIE-LABlab(28.59, 42.08, -49.34)
CIE-LCHlch(28.59, 64.84, 310.46°)
OKLaboklab(40.29% 0.0763 -0.1408)
OKLCHoklch(40.29% 0.16 298.4)
XYZxyz(9.7753, 5.6786, 27.3636)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A91 #65912A
analogous
#2A3291 #562A91 #8A2A91
triadic
#562A91 #91562A #2A9156
tetradic
#562A91 #912A32 #65912A #2A918A
square
#562A91 #912A32 #65912A #2A918A
split-complementary
#562A91 #918A2A #32912A
monochromatic
#1E0F32 #3A1C62 #562A91 #7238C0 #9363D2

Accessibility & contrast

On white

9.83
#562A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#562A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A91
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A91#FFFFFF#000000##FFFFFF
##562A911.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562a91;
/* rgb */ color: rgb(86, 42, 145);
/* oklch */ color: oklch(40.3% 0.160 298.4);
Tailwind
colors: {
  custom: {
    50: '#8b67b2',
    500: '#562a91',
    950: '#000000',
  },
}
SCSS
$custom: #562a91;
$custom-light: #8b67b2;
$custom-dark: #000000;
JSON
{
  "hex": "#562a91",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 265.631,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40295,
    "c": 0.16015,
    "h": 298.4
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

primary
#562A91
secondary
#92B85F
accent
#DE499F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562A91

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

Preview Lab → · Contrast checker → · Palette generator →

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