#562897#562897

#562897 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.170 H 297.1°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#562897
RGBrgb(86, 40, 151)
HSLhsl(265, 58%, 37%)
HSVhsv(265, 74%, 59%)
CMYKcmyk(43%, 73.5%, 0%, 40.8%)
CIE-LABlab(28.72, 44.69, -52.81)
CIE-LCHlch(28.72, 69.18, 310.24°)
OKLaboklab(40.55% 0.0771 -0.151)
OKLCHoklch(40.55% 0.17 297.1)
XYZxyz(10.1810, 5.7302, 29.8418)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562897 #699728
analogous
#283197 #562897 #8E2897
triadic
#562897 #975628 #289756
tetradic
#562897 #972831 #699728 #28978E
square
#562897 #972831 #699728 #28978E
split-complementary
#562897 #978E28 #319728
monochromatic
#1F0E36 #3A1B67 #562897 #7235C7 #9364D6

Accessibility & contrast

On white

9.79
#562897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#562897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562897
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562897#FFFFFF#000000##FFFFFF
##5628971.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562897;
/* rgb */ color: rgb(86, 40, 151);
/* oklch */ color: oklch(40.5% 0.170 297.1);
Tailwind
colors: {
  custom: {
    50: '#8c66b6',
    500: '#562897',
    950: '#000000',
  },
}
SCSS
$custom: #562897;
$custom-light: #8c66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562897",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 264.865,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40546,
    "c": 0.16957,
    "h": 297.1
  },
  "luminance": 0.0573
}

Semantic roles & 50–950 ramp

primary
#562897
secondary
#95BC5F
accent
#E146A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562897

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

Preview Lab → · Contrast checker → · Palette generator →

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