#562898#562898

#562898 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.171 H 296.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#562898
RGBrgb(86, 40, 152)
HSLhsl(265, 58%, 38%)
HSVhsv(265, 74%, 60%)
CMYKcmyk(43.4%, 73.7%, 0%, 40.4%)
CIE-LABlab(28.81, 44.96, -53.28)
CIE-LCHlch(28.81, 69.72, 310.16°)
OKLaboklab(40.63% 0.0769 -0.1524)
OKLCHoklch(40.63% 0.171 296.8)
XYZxyz(10.2626, 5.7628, 30.2713)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562898 #6A9828
analogous
#283298 #562898 #8E2898
triadic
#562898 #985628 #289856
tetradic
#562898 #982832 #6A9828 #28988E
square
#562898 #982832 #6A9828 #28988E
split-complementary
#562898 #988E28 #329828
monochromatic
#1F0F37 #3B1B68 #562898 #7135C8 #9364D6

Accessibility & contrast

On white

9.76
#562898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#562898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562898
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562898#FFFFFF#000000##FFFFFF
##5628981.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562898;
/* rgb */ color: rgb(86, 40, 152);
/* oklch */ color: oklch(40.6% 0.171 296.8);
Tailwind
colors: {
  custom: {
    50: '#8c66b7',
    500: '#562898',
    950: '#000000',
  },
}
SCSS
$custom: #562898;
$custom-light: #8c66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#562898",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 264.643,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40632,
    "c": 0.17071,
    "h": 296.8
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#562898
secondary
#96BC60
accent
#E246A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562898

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

Preview Lab → · Contrast checker → · Palette generator →

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