#562C7F#562C7F

#562C7F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.136 H 304.1°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#562C7F
RGBrgb(86, 44, 127)
HSLhsl(270, 49%, 34%)
HSVhsv(270, 65%, 50%)
CMYKcmyk(32.3%, 65.4%, 0%, 50.2%)
CIE-LABlab(27.61, 36.24, -39.72)
CIE-LCHlch(27.61, 53.77, 312.37°)
OKLaboklab(39.16% 0.0761 -0.1126)
OKLCHoklch(39.16% 0.136 304.1)
XYZxyz(8.5683, 5.3121, 20.6485)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C7F #557F2C
analogous
#2C2C7F #562C7F #7F2C7E
triadic
#562C7F #7F562C #2C7F56
tetradic
#562C7F #7F2C2C #557F2C #2C7E7F
square
#562C7F #7F2C2C #557F2C #2C7E7F
split-complementary
#562C7F #7E7F2C #2C7F2C
monochromatic
#180D24 #371C52 #562C7F #753CAC #935EC7

Accessibility & contrast

On white

10.18
#562C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562C7F
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C7F#FFFFFF#000000##FFFFFF
##562C7F1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#15417D
Tritanopia (blue-blind)
#4E3E51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562c7f;
/* rgb */ color: rgb(86, 44, 127);
/* oklch */ color: oklch(39.2% 0.136 304.1);
Tailwind
colors: {
  custom: {
    50: '#8968a5',
    500: '#562c7f',
    950: '#000000',
  },
}
SCSS
$custom: #562c7f;
$custom-light: #8968a5;
$custom-dark: #000000;
JSON
{
  "hex": "#562c7f",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 270.361,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39159,
    "c": 0.13589,
    "h": 304.1
  },
  "luminance": 0.05312
}

Semantic roles & 50–950 ramp

primary
#562C7F
secondary
#83AD59
accent
#D85093
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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