#562098#562098

#562098 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.179 H 297.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#562098
RGBrgb(86, 32, 152)
HSLhsl(267, 65%, 36%)
HSVhsv(267, 79%, 60%)
CMYKcmyk(43.4%, 78.9%, 0%, 40.4%)
CIE-LABlab(27.51, 48.64, -55.39)
CIE-LCHlch(27.51, 73.72, 311.29°)
OKLaboklab(39.72% 0.0841 -0.1586)
OKLCHoklch(39.72% 0.179 297.9)
XYZxyz(10.0203, 5.2783, 30.1906)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562098 #629820
analogous
#202698 #562098 #922098
triadic
#562098 #985620 #209856
tetradic
#562098 #982026 #629820 #209892
square
#562098 #982026 #629820 #209892
split-complementary
#562098 #989220 #269820
monochromatic
#1D0B33 #391565 #562098 #732BCB #9357DC

Accessibility & contrast

On white

10.22
#562098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562098
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562098#FFFFFF#000000##FFFFFF
##5620981.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562098;
/* rgb */ color: rgb(86, 32, 152);
/* oklch */ color: oklch(39.7% 0.179 297.9);
Tailwind
colors: {
  custom: {
    50: '#8c62b7',
    500: '#562098',
    950: '#000000',
  },
}
SCSS
$custom: #562098;
$custom-light: #8c62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562098",
  "rgb": {
    "r": 86,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 267,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39723,
    "c": 0.17948,
    "h": 297.9
  },
  "luminance": 0.05278
}

Semantic roles & 50–950 ramp

primary
#562098
secondary
#8FBF54
accent
#E8409C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #562098

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

Preview Lab → · Contrast checker → · Palette generator →

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