#562799#562799

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

Color values

HEX#562799
RGBrgb(86, 39, 153)
HSLhsl(265, 59%, 38%)
HSVhsv(265, 75%, 60%)
CMYKcmyk(43.8%, 74.5%, 0%, 40%)
CIE-LABlab(28.72, 45.72, -54.04)
CIE-LCHlch(28.72, 70.78, 310.23°)
OKLaboklab(40.6% 0.0776 -0.1546)
OKLCHoklch(40.6% 0.173 296.7)
XYZxyz(10.3115, 5.7292, 30.6934)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562799 #6A9927
analogous
#273199 #562799 #8F2799
triadic
#562799 #995627 #279956
tetradic
#562799 #992731 #6A9927 #27998F
square
#562799 #992731 #6A9927 #27998F
split-complementary
#562799 #998F27 #319927
monochromatic
#1F0E37 #3B1B68 #562799 #7133CA #9363D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562799#FFFFFF#000000##FFFFFF
##5627991.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)
#00449C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#44445E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562799;
/* rgb */ color: rgb(86, 39, 153);
/* oklch */ color: oklch(40.6% 0.173 296.7);
Tailwind
colors: {
  custom: {
    50: '#8c66b8',
    500: '#562799',
    950: '#000000',
  },
}
SCSS
$custom: #562799;
$custom-light: #8c66b8;
$custom-dark: #000000;
JSON
{
  "hex": "#562799",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 264.737,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40597,
    "c": 0.17301,
    "h": 296.7
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#562799
secondary
#96BD5F
accent
#E345A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562799

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

Preview Lab → · Contrast checker → · Palette generator →

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