#562F6B#562F6B

#562F6B is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.3% C 0.106 H 312.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#562F6B
RGBrgb(86, 47, 107)
HSLhsl(279, 39%, 30%)
HSVhsv(279, 56%, 42%)
CMYKcmyk(19.6%, 56.1%, 0%, 58%)
CIE-LABlab(26.94, 29.44, -28.07)
CIE-LCHlch(26.94, 40.68, 316.36°)
OKLaboklab(38.25% 0.0717 -0.0785)
OKLCHoklch(38.25% 0.106 312.4)
XYZxyz(7.5076, 5.0732, 14.4908)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F6B #446B2F
analogous
#382F6B #562F6B #6B2F62
triadic
#562F6B #6B562F #2F6B56
tetradic
#562F6B #6B382F #446B2F #2F626B
square
#562F6B #6B382F #446B2F #2F626B
split-complementary
#562F6B #626B2F #2F6B38
monochromatic
#120A16 #341C40 #562F6B #784296 #985DB8

Accessibility & contrast

On white

10.42
#562F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#562F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F6B
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F6B#FFFFFF#000000##FFFFFF
##562F6B1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3E6D
Deuteranopia (green-blind)
#2C4169
Tritanopia (blue-blind)
#543948
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562f6b;
/* rgb */ color: rgb(86, 47, 107);
/* oklch */ color: oklch(38.3% 0.106 312.4);
Tailwind
colors: {
  custom: {
    50: '#876996',
    500: '#562f6b',
    950: '#000000',
  },
}
SCSS
$custom: #562f6b;
$custom-light: #876996;
$custom-dark: #000000;
JSON
{
  "hex": "#562f6b",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 107
  },
  "hsl": {
    "h": 279,
    "s": 38.961,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38253,
    "c": 0.10631,
    "h": 312.4
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#562F6B
secondary
#719C59
accent
#CF5982
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #562F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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