#562F6E#562F6E

#562F6E is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.4% C 0.110 H 310.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#562F6E
RGBrgb(86, 47, 110)
HSLhsl(277, 40%, 31%)
HSVhsv(277, 57%, 43%)
CMYKcmyk(21.8%, 57.3%, 0%, 56.9%)
CIE-LABlab(27.12, 30.18, -29.71)
CIE-LCHlch(27.12, 42.35, 315.45°)
OKLaboklab(38.44% 0.072 -0.0832)
OKLCHoklch(38.44% 0.11 310.8)
XYZxyz(7.6682, 5.1374, 15.3365)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F6E #476E2F
analogous
#362F6E #562F6E #6E2F66
triadic
#562F6E #6E562F #2F6E56
tetradic
#562F6E #6E362F #476E2F #2F666E
square
#562F6E #6E362F #476E2F #2F666E
split-complementary
#562F6E #666E2F #2F6E36
monochromatic
#130A18 #341D43 #562F6E #784199 #975DBA

Accessibility & contrast

On white

10.36
#562F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#562F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F6E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F6E#FFFFFF#000000##FFFFFF
##562F6E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3E70
Deuteranopia (green-blind)
#2A416C
Tritanopia (blue-blind)
#533A49
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562f6e;
/* rgb */ color: rgb(86, 47, 110);
/* oklch */ color: oklch(38.4% 0.110 310.8);
Tailwind
colors: {
  custom: {
    50: '#876998',
    500: '#562f6e',
    950: '#000000',
  },
}
SCSS
$custom: #562f6e;
$custom-light: #876998;
$custom-dark: #000000;
JSON
{
  "hex": "#562f6e",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 110
  },
  "hsl": {
    "h": 277.143,
    "s": 40.127,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.11004,
    "h": 310.8
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#562F6E
secondary
#749F59
accent
#D05886
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #562F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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