#562F78#562F78

#562F78 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.1% C 0.123 H 306.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#562F78
RGBrgb(86, 47, 120)
HSLhsl(272, 44%, 33%)
HSVhsv(272, 61%, 47%)
CMYKcmyk(28.3%, 60.8%, 0%, 52.9%)
CIE-LABlab(27.76, 32.72, -35.06)
CIE-LCHlch(27.76, 47.96, 313.02°)
OKLaboklab(39.12% 0.0723 -0.0989)
OKLCHoklch(39.12% 0.123 306.2)
XYZxyz(8.2437, 5.3676, 18.3674)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F78 #51782F
analogous
#312F78 #562F78 #782F75
triadic
#562F78 #78562F #2F7856
tetradic
#562F78 #78312F #51782F #2F7578
square
#562F78 #78312F #51782F #2F7578
split-complementary
#562F78 #75782F #2F7831
monochromatic
#170D20 #361E4C #562F78 #7640A4 #9460C1

Accessibility & contrast

On white

10.13
#562F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F78
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F78#FFFFFF#000000##FFFFFF
##562F781.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11407A
Deuteranopia (green-blind)
#224276
Tritanopia (blue-blind)
#503D4E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562f78;
/* rgb */ color: rgb(86, 47, 120);
/* oklch */ color: oklch(39.1% 0.123 306.2);
Tailwind
colors: {
  custom: {
    50: '#88699f',
    500: '#562f78',
    950: '#000000',
  },
}
SCSS
$custom: #562f78;
$custom-light: #88699f;
$custom-dark: #000000;
JSON
{
  "hex": "#562f78",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 272.055,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39115,
    "c": 0.12254,
    "h": 306.2
  },
  "luminance": 0.05368
}

Semantic roles & 50–950 ramp

primary
#562F78
secondary
#7FA85B
accent
#D35490
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562F78

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

Preview Lab → · Contrast checker → · Palette generator →

#562F78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva