#562A80#562A80

#562A80 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.9% C 0.140 H 304.1°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#562A80
RGBrgb(86, 42, 128)
HSLhsl(271, 51%, 33%)
HSVhsv(271, 67%, 50%)
CMYKcmyk(32.8%, 67.2%, 0%, 49.8%)
CIE-LABlab(27.28, 37.59, -40.88)
CIE-LCHlch(27.28, 55.54, 312.60°)
OKLaboklab(38.94% 0.0785 -0.116)
OKLCHoklch(38.94% 0.14 304.1)
XYZxyz(8.5611, 5.1929, 20.9692)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A80 #54802A
analogous
#2B2A80 #562A80 #802A7F
triadic
#562A80 #80562A #2A8056
tetradic
#562A80 #802B2A #54802A #2A7F80
square
#562A80 #802B2A #54802A #2A7F80
split-complementary
#562A80 #7F802A #2A802B
monochromatic
#180C24 #371B52 #562A80 #7539AE #935BC9

Accessibility & contrast

On white

10.30
#562A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#562A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A80
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A80#FFFFFF#000000##FFFFFF
##562A801.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#0F407E
Tritanopia (blue-blind)
#4E3D51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562a80;
/* rgb */ color: rgb(86, 42, 128);
/* oklch */ color: oklch(38.9% 0.140 304.1);
Tailwind
colors: {
  custom: {
    50: '#8967a5',
    500: '#562a80',
    950: '#000000',
  },
}
SCSS
$custom: #562a80;
$custom-light: #8967a5;
$custom-dark: #000000;
JSON
{
  "hex": "#562a80",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 270.698,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38944,
    "c": 0.14006,
    "h": 304.1
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#562A80
secondary
#82AF57
accent
#DA4E92
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A80

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

Preview Lab → · Contrast checker → · Palette generator →

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