#562C7E#562C7E

#562C7E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.135 H 304.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#562C7E
RGBrgb(86, 44, 126)
HSLhsl(271, 48%, 33%)
HSVhsv(271, 65%, 49%)
CMYKcmyk(31.7%, 65.1%, 0%, 50.6%)
CIE-LABlab(27.54, 35.98, -39.21)
CIE-LCHlch(27.54, 53.21, 312.54°)
OKLaboklab(39.08% 0.0762 -0.1111)
OKLCHoklch(39.08% 0.135 304.4)
XYZxyz(8.5035, 5.2862, 20.3070)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C7E #547E2C
analogous
#2D2C7E #562C7E #7E2C7D
triadic
#562C7E #7E562C #2C7E56
tetradic
#562C7E #7E2D2C #547E2C #2C7D7E
square
#562C7E #7E2D2C #547E2C #2C7D7E
split-complementary
#562C7E #7D7E2C #2C7E2D
monochromatic
#180C23 #371C51 #562C7E #753CAB #935EC7

Accessibility & contrast

On white

10.21
#562C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C7E
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C7E#FFFFFF#000000##FFFFFF
##562C7E1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#17417C
Tritanopia (blue-blind)
#4F3D51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562c7e;
/* rgb */ color: rgb(86, 44, 126);
/* oklch */ color: oklch(39.1% 0.135 304.4);
Tailwind
colors: {
  custom: {
    50: '#8968a4',
    500: '#562c7e',
    950: '#000000',
  },
}
SCSS
$custom: #562c7e;
$custom-light: #8968a4;
$custom-dark: #000000;
JSON
{
  "hex": "#562c7e",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 270.732,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39084,
    "c": 0.13468,
    "h": 304.4
  },
  "luminance": 0.05286
}

Semantic roles & 50–950 ramp

primary
#562C7E
secondary
#82AD59
accent
#D85092
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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