#562791#562791

#562791 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.164 H 299.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#562791
RGBrgb(86, 39, 145)
HSLhsl(267, 58%, 36%)
HSVhsv(267, 73%, 57%)
CMYKcmyk(40.7%, 73.1%, 0%, 43.1%)
CIE-LABlab(28.04, 43.60, -50.22)
CIE-LCHlch(28.04, 66.50, 310.96°)
OKLaboklab(39.91% 0.0794 -0.1434)
OKLCHoklch(39.91% 0.164 299)
XYZxyz(9.6728, 5.4737, 27.3295)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562791 #629127
analogous
#272D91 #562791 #8B2791
triadic
#562791 #915627 #279156
tetradic
#562791 #91272D #629127 #27918B
square
#562791 #91272D #629127 #27918B
split-complementary
#562791 #918B27 #2D9127
monochromatic
#1D0D31 #391A61 #562791 #7334C1 #935FD4

Accessibility & contrast

On white

10.02
#562791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562791
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562791#FFFFFF#000000##FFFFFF
##5627911.0010.022.0910.02
#FFFFFF10.021.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#484159
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562791;
/* rgb */ color: rgb(86, 39, 145);
/* oklch */ color: oklch(39.9% 0.164 299.0);
Tailwind
colors: {
  custom: {
    50: '#8b65b2',
    500: '#562791',
    950: '#000000',
  },
}
SCSS
$custom: #562791;
$custom-light: #8b65b2;
$custom-dark: #000000;
JSON
{
  "hex": "#562791",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 266.604,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39909,
    "c": 0.16392,
    "h": 299
  },
  "luminance": 0.05474
}

Semantic roles & 50–950 ramp

primary
#562791
secondary
#8FB95B
accent
#E1479D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562791

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

Preview Lab → · Contrast checker → · Palette generator →

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