#562698#562698

#562698 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.173 H 297.1°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#562698
RGBrgb(86, 38, 152)
HSLhsl(265, 60%, 37%)
HSVhsv(265, 75%, 60%)
CMYKcmyk(43.4%, 75%, 0%, 40.4%)
CIE-LABlab(28.46, 45.93, -53.84)
CIE-LCHlch(28.46, 70.77, 310.47°)
OKLaboklab(40.39% 0.0788 -0.154)
OKLCHoklch(40.39% 0.173 297.1)
XYZxyz(10.1969, 5.6315, 30.2494)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562698 #689826
analogous
#262F98 #562698 #8F2698
triadic
#562698 #985626 #269856
tetradic
#562698 #98262F #689826 #26988F
square
#562698 #98262F #689826 #26988F
split-complementary
#562698 #988F26 #2F9826
monochromatic
#1F0E36 #3A1A67 #562698 #7232C9 #9361D7

Accessibility & contrast

On white

9.88
#562698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562698
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562698#FFFFFF#000000##FFFFFF
##5626981.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562698;
/* rgb */ color: rgb(86, 38, 152);
/* oklch */ color: oklch(40.4% 0.173 297.1);
Tailwind
colors: {
  custom: {
    50: '#8c65b7',
    500: '#562698',
    950: '#000000',
  },
}
SCSS
$custom: #562698;
$custom-light: #8c65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562698",
  "rgb": {
    "r": 86,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 265.263,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4039,
    "c": 0.17303,
    "h": 297.1
  },
  "luminance": 0.05632
}

Semantic roles & 50–950 ramp

primary
#562698
secondary
#94BD5D
accent
#E345A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562698

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

Preview Lab → · Contrast checker → · Palette generator →

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