#562D95#562D95

#562D95 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.161 H 296.7°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#562D95
RGBrgb(86, 45, 149)
HSLhsl(264, 54%, 38%)
HSVhsv(264, 70%, 58%)
CMYKcmyk(42.3%, 69.8%, 0%, 41.6%)
CIE-LABlab(29.48, 41.59, -50.35)
CIE-LCHlch(29.48, 65.31, 309.55°)
OKLaboklab(41.03% 0.0724 -0.1438)
OKLCHoklch(41.03% 0.161 296.7)
XYZxyz(10.1995, 6.0249, 29.0535)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D95 #6C952D
analogous
#2D3895 #562D95 #8A2D95
triadic
#562D95 #95562D #2D9556
tetradic
#562D95 #952D38 #6C952D #2D958A
square
#562D95 #952D38 #6C952D #2D958A
split-complementary
#562D95 #958A2D #38952D
monochromatic
#201137 #3B1F66 #562D95 #713BC4 #936AD2

Accessibility & contrast

On white

9.52
#562D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#562D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D95
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D95#FFFFFF#000000##FFFFFF
##562D951.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#46465D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562d95;
/* rgb */ color: rgb(86, 45, 149);
/* oklch */ color: oklch(41.0% 0.161 296.7);
Tailwind
colors: {
  custom: {
    50: '#8b69b5',
    500: '#562d95',
    950: '#000000',
  },
}
SCSS
$custom: #562d95;
$custom-light: #8b69b5;
$custom-dark: #000000;
JSON
{
  "hex": "#562d95",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 263.654,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41031,
    "c": 0.16102,
    "h": 296.7
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#562D95
secondary
#98B965
accent
#DD4BA3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562D95

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

Preview Lab → · Contrast checker → · Palette generator →

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