#562298#562298

#562298 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.177 H 297.7°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#562298
RGBrgb(86, 34, 152)
HSLhsl(266, 63%, 36%)
HSVhsv(266, 78%, 60%)
CMYKcmyk(43.4%, 77.6%, 0%, 40.4%)
CIE-LABlab(27.82, 47.77, -54.90)
CIE-LCHlch(27.82, 72.78, 311.03°)
OKLaboklab(39.93% 0.0824 -0.1571)
OKLCHoklch(39.93% 0.177 297.7)
XYZxyz(10.0758, 5.3893, 30.2091)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562298 #649822
analogous
#222998 #562298 #912298
triadic
#562298 #985622 #229856
tetradic
#562298 #982229 #649822 #229891
square
#562298 #982229 #649822 #229891
split-complementary
#562298 #989122 #299822
monochromatic
#1D0C34 #3A1766 #562298 #722DCA #935ADA

Accessibility & contrast

On white

10.11
#562298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#562298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562298
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562298#FFFFFF#000000##FFFFFF
##5622981.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#45425C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562298;
/* rgb */ color: rgb(86, 34, 152);
/* oklch */ color: oklch(39.9% 0.177 297.7);
Tailwind
colors: {
  custom: {
    50: '#8c63b7',
    500: '#562298',
    950: '#000000',
  },
}
SCSS
$custom: #562298;
$custom-light: #8c63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562298",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 266.441,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39935,
    "c": 0.17742,
    "h": 297.7
  },
  "luminance": 0.05389
}

Semantic roles & 50–950 ramp

primary
#562298
secondary
#91BE57
accent
#E6419E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562298

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

Preview Lab → · Contrast checker → · Palette generator →

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