#562795#562795

#562795 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.168 H 297.8°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#562795
RGBrgb(86, 39, 149)
HSLhsl(266, 59%, 37%)
HSVhsv(266, 74%, 58%)
CMYKcmyk(42.3%, 73.8%, 0%, 41.6%)
CIE-LABlab(28.38, 44.65, -52.14)
CIE-LCHlch(28.38, 68.65, 310.58°)
OKLaboklab(40.25% 0.0785 -0.149)
OKLCHoklch(40.25% 0.168 297.8)
XYZxyz(9.9867, 5.5992, 28.9825)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562795 #669527
analogous
#272F95 #562795 #8D2795
triadic
#562795 #955627 #279556
tetradic
#562795 #95272F #669527 #27958D
square
#562795 #95272F #669527 #27958D
split-complementary
#562795 #958D27 #2F9527
monochromatic
#1E0E34 #3A1A64 #562795 #7234C6 #9361D6

Accessibility & contrast

On white

9.91
#562795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#562795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562795
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562795#FFFFFF#000000##FFFFFF
##5627951.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#46435B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562795;
/* rgb */ color: rgb(86, 39, 149);
/* oklch */ color: oklch(40.3% 0.168 297.8);
Tailwind
colors: {
  custom: {
    50: '#8c66b5',
    500: '#562795',
    950: '#000000',
  },
}
SCSS
$custom: #562795;
$custom-light: #8c66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#562795",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 265.636,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4025,
    "c": 0.16847,
    "h": 297.8
  },
  "luminance": 0.05599
}

Semantic roles & 50–950 ramp

primary
#562795
secondary
#93BB5D
accent
#E2469F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562795

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

Preview Lab → · Contrast checker → · Palette generator →

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