#562F71#562F71

#562F71 is a dark, moderate violet. Relative luminance 0.052; OKLCH L 38.6% C 0.114 H 309.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#562F71
RGBrgb(86, 47, 113)
HSLhsl(275, 41%, 31%)
HSVhsv(275, 58%, 44%)
CMYKcmyk(23.9%, 58.4%, 0%, 55.7%)
CIE-LABlab(27.31, 30.93, -31.33)
CIE-LCHlch(27.31, 44.03, 314.63°)
OKLaboklab(38.64% 0.0721 -0.088)
OKLCHoklch(38.64% 0.114 309.3)
XYZxyz(7.8343, 5.2038, 16.2113)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F71 #4A712F
analogous
#352F71 #562F71 #712F6B
triadic
#562F71 #71562F #2F7156
tetradic
#562F71 #71352F #4A712F #2F6B71
square
#562F71 #71352F #4A712F #2F6B71
split-complementary
#562F71 #6B712F #2F7135
monochromatic
#140B1B #351D46 #562F71 #77419C #965EBC

Accessibility & contrast

On white

10.29
#562F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562F71
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F71#FFFFFF#000000##FFFFFF
##562F711.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F73
Deuteranopia (green-blind)
#28416F
Tritanopia (blue-blind)
#523B4B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562f71;
/* rgb */ color: rgb(86, 47, 113);
/* oklch */ color: oklch(38.6% 0.114 309.3);
Tailwind
colors: {
  custom: {
    50: '#88699a',
    500: '#562f71',
    950: '#000000',
  },
}
SCSS
$custom: #562f71;
$custom-light: #88699a;
$custom-dark: #000000;
JSON
{
  "hex": "#562f71",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 275.455,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.11378,
    "h": 309.3
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

primary
#562F71
secondary
#77A25A
accent
#D15789
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #562F71

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

Preview Lab → · Contrast checker → · Palette generator →

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