#562178#562178

#562178 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.144 H 308.9°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#562178
RGBrgb(86, 33, 120)
HSLhsl(277, 57%, 30%)
HSVhsv(277, 73%, 47%)
CMYKcmyk(28.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(25.02, 40.20, -39.46)
CIE-LCHlch(25.02, 56.33, 315.53°)
OKLaboklab(37.14% 0.0902 -0.1118)
OKLCHoklch(37.14% 0.144 308.9)
XYZxyz(7.7711, 4.4223, 18.2099)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562178 #437821
analogous
#2B2178 #562178 #78216E
triadic
#562178 #785621 #217856
tetradic
#562178 #782B21 #437821 #216E78
square
#562178 #782B21 #437821 #216E78
split-complementary
#562178 #6E7821 #21782B
monochromatic
#110718 #341448 #562178 #782EA8 #9847CC

Accessibility & contrast

On white

11.14
#562178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#562178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562178
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562178#FFFFFF#000000##FFFFFF
##5621781.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#0E3C76
Tritanopia (blue-blind)
#51344A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #562178;
/* rgb */ color: rgb(86, 33, 120);
/* oklch */ color: oklch(37.1% 0.144 308.9);
Tailwind
colors: {
  custom: {
    50: '#8961a0',
    500: '#562178',
    950: '#000000',
  },
}
SCSS
$custom: #562178;
$custom-light: #8961a0;
$custom-dark: #000000;
JSON
{
  "hex": "#562178",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 276.552,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.37138,
    "c": 0.14359,
    "h": 308.9
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#562178
secondary
#70AB4A
accent
#E04883
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #562178

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

Preview Lab → · Contrast checker → · Palette generator →

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