#562891#562891

#562891 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.163 H 298.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#562891
RGBrgb(86, 40, 145)
HSLhsl(266, 57%, 36%)
HSVhsv(266, 72%, 57%)
CMYKcmyk(40.7%, 72.4%, 0%, 43.1%)
CIE-LABlab(28.22, 43.10, -49.93)
CIE-LCHlch(28.22, 65.96, 310.80°)
OKLaboklab(40.04% 0.0784 -0.1426)
OKLCHoklch(40.04% 0.163 298.8)
XYZxyz(9.7061, 5.5402, 27.3406)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562891 #639128
analogous
#282E91 #562891 #8B2891
triadic
#562891 #915628 #289156
tetradic
#562891 #91282E #639128 #28918B
square
#562891 #91282E #639128 #28918B
split-complementary
#562891 #918B28 #2E9128
monochromatic
#1D0E31 #3A1B61 #562891 #7235C1 #9360D3

Accessibility & contrast

On white

9.96
#562891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#562891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562891
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562891#FFFFFF#000000##FFFFFF
##5628911.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562891;
/* rgb */ color: rgb(86, 40, 145);
/* oklch */ color: oklch(40.0% 0.163 298.8);
Tailwind
colors: {
  custom: {
    50: '#8b66b2',
    500: '#562891',
    950: '#000000',
  },
}
SCSS
$custom: #562891;
$custom-light: #8b66b2;
$custom-dark: #000000;
JSON
{
  "hex": "#562891",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 266.286,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40036,
    "c": 0.16268,
    "h": 298.8
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#562891
secondary
#90B95C
accent
#E0489D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562891

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

Preview Lab → · Contrast checker → · Palette generator →

#562891 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva