#562C7D#562C7D

#562C7D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.133 H 304.8°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#562C7D
RGBrgb(86, 44, 125)
HSLhsl(271, 48%, 33%)
HSVhsv(271, 65%, 49%)
CMYKcmyk(31.2%, 64.8%, 0%, 51%)
CIE-LABlab(27.46, 35.72, -38.69)
CIE-LCHlch(27.46, 52.66, 312.71°)
OKLaboklab(39.01% 0.0762 -0.1095)
OKLCHoklch(39.01% 0.133 304.8)
XYZxyz(8.4393, 5.2605, 19.9688)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C7D #537D2C
analogous
#2D2C7D #562C7D #7D2C7B
triadic
#562C7D #7D562C #2C7D56
tetradic
#562C7D #7D2D2C #537D2C #2C7B7D
square
#562C7D #7D2D2C #537D2C #2C7B7D
split-complementary
#562C7D #7B7D2C #2C7D2D
monochromatic
#180C22 #371C50 #562C7D #753CAA #945DC6

Accessibility & contrast

On white

10.23
#562C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C7D
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C7D#FFFFFF#000000##FFFFFF
##562C7D1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#18417B
Tritanopia (blue-blind)
#4F3D50
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562c7d;
/* rgb */ color: rgb(86, 44, 125);
/* oklch */ color: oklch(39.0% 0.133 304.8);
Tailwind
colors: {
  custom: {
    50: '#8968a3',
    500: '#562c7d',
    950: '#000000',
  },
}
SCSS
$custom: #562c7d;
$custom-light: #8968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#562c7d",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 271.111,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39011,
    "c": 0.13346,
    "h": 304.8
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#562C7D
secondary
#81AC59
accent
#D85091
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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