#562197#562197

#562197 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.177 H 298.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#562197
RGBrgb(86, 33, 151)
HSLhsl(267, 64%, 36%)
HSVhsv(267, 78%, 59%)
CMYKcmyk(43%, 78.1%, 0%, 40.8%)
CIE-LABlab(27.57, 47.96, -54.68)
CIE-LCHlch(27.57, 72.73, 311.25°)
OKLaboklab(39.74% 0.0835 -0.1565)
OKLCHoklch(39.74% 0.177 298.1)
XYZxyz(9.9661, 5.3003, 29.7702)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562197 #629721
analogous
#212797 #562197 #912197
triadic
#562197 #975621 #219756
tetradic
#562197 #972127 #629721 #219791
square
#562197 #972127 #629721 #219791
split-complementary
#562197 #979121 #279721
monochromatic
#1D0B33 #391665 #562197 #732CC9 #9358DA

Accessibility & contrast

On white

10.19
#562197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562197
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562197#FFFFFF#000000##FFFFFF
##5621971.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#45415B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562197;
/* rgb */ color: rgb(86, 33, 151);
/* oklch */ color: oklch(39.7% 0.177 298.1);
Tailwind
colors: {
  custom: {
    50: '#8c63b7',
    500: '#562197',
    950: '#000000',
  },
}
SCSS
$custom: #562197;
$custom-light: #8c63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562197",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 266.949,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39738,
    "c": 0.17737,
    "h": 298.1
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#562197
secondary
#8FBE55
accent
#E7419C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #562197

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

Preview Lab → · Contrast checker → · Palette generator →

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