#562797#562797

#562797 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.171 H 297.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#562797
RGBrgb(86, 39, 151)
HSLhsl(265, 59%, 37%)
HSVhsv(265, 74%, 59%)
CMYKcmyk(43%, 74.2%, 0%, 40.8%)
CIE-LABlab(28.55, 45.18, -53.09)
CIE-LCHlch(28.55, 69.72, 310.40°)
OKLaboklab(40.42% 0.0781 -0.1518)
OKLCHoklch(40.42% 0.171 297.2)
XYZxyz(10.1477, 5.6636, 29.8307)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562797 #689727
analogous
#273097 #562797 #8E2797
triadic
#562797 #975627 #279756
tetradic
#562797 #972730 #689727 #27978E
square
#562797 #972730 #689727 #27978E
split-complementary
#562797 #978E27 #309727
monochromatic
#1F0E36 #3A1A66 #562797 #7234C8 #9362D6

Accessibility & contrast

On white

9.85
#562797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562797
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562797#FFFFFF#000000##FFFFFF
##5627971.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#45445D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562797;
/* rgb */ color: rgb(86, 39, 151);
/* oklch */ color: oklch(40.4% 0.171 297.2);
Tailwind
colors: {
  custom: {
    50: '#8c66b6',
    500: '#562797',
    950: '#000000',
  },
}
SCSS
$custom: #562797;
$custom-light: #8c66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562797",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 265.179,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40423,
    "c": 0.17074,
    "h": 297.2
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#562797
secondary
#94BC5E
accent
#E246A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562797

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

Preview Lab → · Contrast checker → · Palette generator →

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