#562D7D#562D7D

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

Color values

HEX#562D7D
RGBrgb(86, 45, 125)
HSLhsl(271, 47%, 33%)
HSVhsv(271, 64%, 49%)
CMYKcmyk(31.2%, 64%, 0%, 51%)
CIE-LABlab(27.67, 35.16, -38.36)
CIE-LCHlch(27.67, 52.03, 312.51°)
OKLaboklab(39.16% 0.0749 -0.1086)
OKLCHoklch(39.16% 0.132 304.6)
XYZxyz(8.4770, 5.3359, 19.9814)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D7D #547D2D
analogous
#2E2D7D #562D7D #7D2D7C
triadic
#562D7D #7D562D #2D7D56
tetradic
#562D7D #7D2E2D #547D2D #2D7C7D
square
#562D7D #7D2E2D #547D2D #2D7C7D
split-complementary
#562D7D #7C7D2D #2D7D2E
monochromatic
#180D23 #371D50 #562D7D #753DAA #935FC5

Accessibility & contrast

On white

10.16
#562D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D7D
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D7D#FFFFFF#000000##FFFFFF
##562D7D1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562d7d;
/* rgb */ color: rgb(86, 45, 125);
/* oklch */ color: oklch(39.2% 0.132 304.6);
Tailwind
colors: {
  custom: {
    50: '#8968a3',
    500: '#562d7d',
    950: '#000000',
  },
}
SCSS
$custom: #562d7d;
$custom-light: #8968a3;
$custom-dark: #000000;
JSON
{
  "hex": "#562d7d",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 270.75,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39161,
    "c": 0.13192,
    "h": 304.6
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#562D7D
secondary
#82AC5A
accent
#D75192
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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