#562198#562198

#562198 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.178 H 297.8°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#562198
RGBrgb(86, 33, 152)
HSLhsl(267, 64%, 36%)
HSVhsv(267, 78%, 60%)
CMYKcmyk(43.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(27.66, 48.21, -55.15)
CIE-LCHlch(27.66, 73.25, 311.16°)
OKLaboklab(39.83% 0.0833 -0.1578)
OKLCHoklch(39.83% 0.178 297.8)
XYZxyz(10.0476, 5.3330, 30.1997)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562198 #639821
analogous
#212898 #562198 #922198
triadic
#562198 #985621 #219856
tetradic
#562198 #982128 #639821 #219892
square
#562198 #982128 #639821 #219892
split-complementary
#562198 #989221 #289821
monochromatic
#1D0B33 #3A1666 #562198 #722CCA #9359DB

Accessibility & contrast

On white

10.16
#562198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562198
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562198#FFFFFF#000000##FFFFFF
##5621981.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562198;
/* rgb */ color: rgb(86, 33, 152);
/* oklch */ color: oklch(39.8% 0.178 297.8);
Tailwind
colors: {
  custom: {
    50: '#8c63b7',
    500: '#562198',
    950: '#000000',
  },
}
SCSS
$custom: #562198;
$custom-light: #8c63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562198",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 266.723,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39828,
    "c": 0.17845,
    "h": 297.8
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#562198
secondary
#90BF56
accent
#E7409D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #562198

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

Preview Lab → · Contrast checker → · Palette generator →

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