#562D7F#562D7F

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

Color values

HEX#562D7F
RGBrgb(86, 45, 127)
HSLhsl(270, 48%, 34%)
HSVhsv(270, 65%, 50%)
CMYKcmyk(32.3%, 64.6%, 0%, 50.2%)
CIE-LABlab(27.81, 35.68, -39.39)
CIE-LCHlch(27.81, 53.15, 312.17°)
OKLaboklab(39.31% 0.0748 -0.1116)
OKLCHoklch(39.31% 0.134 303.8)
XYZxyz(8.6060, 5.3875, 20.6611)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D7F #567F2D
analogous
#2D2D7F #562D7F #7F2D7F
triadic
#562D7F #7F562D #2D7F56
tetradic
#562D7F #7F2D2D #567F2D #2D7F7F
square
#562D7F #7F2D2D #567F2D #2D7F7F
split-complementary
#562D7F #7F7F2D #2D7F2D
monochromatic
#190D25 #371D52 #562D7F #753DAC #9360C7

Accessibility & contrast

On white

10.11
#562D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562D7F
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D7F#FFFFFF#000000##FFFFFF
##562D7F1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#17427D
Tritanopia (blue-blind)
#4E3E51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562d7f;
/* rgb */ color: rgb(86, 45, 127);
/* oklch */ color: oklch(39.3% 0.134 303.8);
Tailwind
colors: {
  custom: {
    50: '#8968a5',
    500: '#562d7f',
    950: '#000000',
  },
}
SCSS
$custom: #562d7f;
$custom-light: #8968a5;
$custom-dark: #000000;
JSON
{
  "hex": "#562d7f",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39307,
    "c": 0.13437,
    "h": 303.8
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#562D7F
secondary
#84AD5B
accent
#D75194
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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