#562D76#562D76

#562D76 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.123 H 307.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#562D76
RGBrgb(86, 45, 118)
HSLhsl(274, 45%, 32%)
HSVhsv(274, 62%, 46%)
CMYKcmyk(27.1%, 61.9%, 0%, 53.7%)
CIE-LABlab(27.20, 33.35, -34.70)
CIE-LCHlch(27.20, 48.13, 313.87°)
OKLaboklab(38.66% 0.0751 -0.0978)
OKLCHoklch(38.66% 0.123 307.5)
XYZxyz(8.0455, 5.1633, 17.7088)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D76 #4D762D
analogous
#322D76 #562D76 #762D72
triadic
#562D76 #76562D #2D7656
tetradic
#562D76 #76322D #4D762D #2D7276
square
#562D76 #76322D #4D762D #2D7276
split-complementary
#562D76 #72762D #2D7632
monochromatic
#150B1D #361C4A #562D76 #763EA2 #955CC1

Accessibility & contrast

On white

10.33
#562D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#562D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D76
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D76#FFFFFF#000000##FFFFFF
##562D761.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3F78
Deuteranopia (green-blind)
#214174
Tritanopia (blue-blind)
#513B4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562d76;
/* rgb */ color: rgb(86, 45, 118);
/* oklch */ color: oklch(38.7% 0.123 307.5);
Tailwind
colors: {
  custom: {
    50: '#88689e',
    500: '#562d76',
    950: '#000000',
  },
}
SCSS
$custom: #562d76;
$custom-light: #88689e;
$custom-dark: #000000;
JSON
{
  "hex": "#562d76",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 118
  },
  "hsl": {
    "h": 273.699,
    "s": 44.785,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38662,
    "c": 0.12333,
    "h": 307.5
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#562D76
secondary
#7AA757
accent
#D4538C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562D76

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

Preview Lab → · Contrast checker → · Palette generator →

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