#562A74#562A74

#562A74 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.126 H 309.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#562A74
RGBrgb(86, 42, 116)
HSLhsl(276, 47%, 31%)
HSVhsv(276, 64%, 45%)
CMYKcmyk(25.9%, 63.8%, 0%, 54.5%)
CIE-LABlab(26.43, 34.54, -34.64)
CIE-LCHlch(26.43, 48.92, 314.91°)
OKLaboklab(38.07% 0.0792 -0.0977)
OKLCHoklch(38.07% 0.126 309)
XYZxyz(7.8175, 4.8954, 17.0527)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A74 #48742A
analogous
#312A74 #562A74 #742A6D
triadic
#562A74 #74562A #2A7456
tetradic
#562A74 #74312A #48742A #2A6D74
square
#562A74 #74312A #48742A #2A6D74
split-complementary
#562A74 #6D742A #2A7431
monochromatic
#13091A #351A47 #562A74 #773AA1 #9656C2

Accessibility & contrast

On white

10.61
#562A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#562A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A74
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A74#FFFFFF#000000##FFFFFF
##562A741.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093D76
Deuteranopia (green-blind)
#203F72
Tritanopia (blue-blind)
#52384B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #562a74;
/* rgb */ color: rgb(86, 42, 116);
/* oklch */ color: oklch(38.1% 0.126 309.0);
Tailwind
colors: {
  custom: {
    50: '#88669c',
    500: '#562a74',
    950: '#000000',
  },
}
SCSS
$custom: #562a74;
$custom-light: #88669c;
$custom-dark: #000000;
JSON
{
  "hex": "#562a74",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 275.676,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38065,
    "c": 0.12574,
    "h": 309
  },
  "luminance": 0.04895
}

Semantic roles & 50–950 ramp

primary
#562A74
secondary
#75A654
accent
#D65187
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562A74

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

Preview Lab → · Contrast checker → · Palette generator →

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