#562D7B#562D7B

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

Color values

HEX#562D7B
RGBrgb(86, 45, 123)
HSLhsl(272, 46%, 33%)
HSVhsv(272, 63%, 48%)
CMYKcmyk(30.1%, 63.4%, 0%, 51.8%)
CIE-LABlab(27.53, 34.64, -37.32)
CIE-LCHlch(27.53, 50.92, 312.86°)
OKLaboklab(39.02% 0.075 -0.1055)
OKLCHoklch(39.02% 0.129 305.4)
XYZxyz(8.3505, 5.2853, 19.3153)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D7B #527B2D
analogous
#2F2D7B #562D7B #7B2D79
triadic
#562D7B #7B562D #2D7B56
tetradic
#562D7B #7B2F2D #527B2D #2D797B
square
#562D7B #7B2F2D #527B2D #2D797B
split-complementary
#562D7B #797B2D #2D7B2F
monochromatic
#170C21 #371D4E #562D7B #753DA8 #945EC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562D7B#FFFFFF#000000##FFFFFF
##562D7B1.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)
#04407D
Deuteranopia (green-blind)
#1C4179
Tritanopia (blue-blind)
#503D4F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562d7b;
/* rgb */ color: rgb(86, 45, 123);
/* oklch */ color: oklch(39.0% 0.129 305.4);
Tailwind
colors: {
  custom: {
    50: '#8968a2',
    500: '#562d7b',
    950: '#000000',
  },
}
SCSS
$custom: #562d7b;
$custom-light: #8968a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562d7b",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 271.538,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39016,
    "c": 0.12947,
    "h": 305.4
  },
  "luminance": 0.05285
}

Semantic roles & 50–950 ramp

primary
#562D7B
secondary
#80AB59
accent
#D65291
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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