#562F7A#562F7A

#562F7A is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.125 H 305.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#562F7A
RGBrgb(86, 47, 122)
HSLhsl(271, 44%, 33%)
HSVhsv(271, 61%, 48%)
CMYKcmyk(29.5%, 61.5%, 0%, 52.2%)
CIE-LABlab(27.89, 33.24, -36.12)
CIE-LCHlch(27.89, 49.08, 312.62°)
OKLaboklab(39.26% 0.0723 -0.102)
OKLCHoklch(39.26% 0.125 305.3)
XYZxyz(8.3664, 5.4167, 19.0133)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F7A #537A2F
analogous
#302F7A #562F7A #7A2F78
triadic
#562F7A #7A562F #2F7A56
tetradic
#562F7A #7A302F #537A2F #2F787A
square
#562F7A #7A302F #537A2F #2F787A
split-complementary
#562F7A #787A2F #2F7A30
monochromatic
#180D22 #371E4E #562F7A #7540A6 #9461C2

Accessibility & contrast

On white

10.08
#562F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#562F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F7A
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F7A#FFFFFF#000000##FFFFFF
##562F7A1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417C
Deuteranopia (green-blind)
#204278
Tritanopia (blue-blind)
#503E50
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562f7a;
/* rgb */ color: rgb(86, 47, 122);
/* oklch */ color: oklch(39.3% 0.125 305.3);
Tailwind
colors: {
  custom: {
    50: '#8869a1',
    500: '#562f7a',
    950: '#000000',
  },
}
SCSS
$custom: #562f7a;
$custom-light: #8869a1;
$custom-dark: #000000;
JSON
{
  "hex": "#562f7a",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 271.2,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39255,
    "c": 0.12505,
    "h": 305.3
  },
  "luminance": 0.05417
}

Semantic roles & 50–950 ramp

primary
#562F7A
secondary
#81A95C
accent
#D45491
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #562F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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