#562C82#562C82

#562C82 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.140 H 303.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#562C82
RGBrgb(86, 44, 130)
HSLhsl(269, 49%, 34%)
HSVhsv(269, 66%, 51%)
CMYKcmyk(33.8%, 66.2%, 0%, 49%)
CIE-LABlab(27.82, 37.02, -41.26)
CIE-LCHlch(27.82, 55.43, 311.90°)
OKLaboklab(39.38% 0.0759 -0.1171)
OKLCHoklch(39.38% 0.14 303)
XYZxyz(8.7668, 5.3915, 21.6936)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C82 #58822C
analogous
#2C2D82 #562C82 #812C82
triadic
#562C82 #82562C #2C8256
tetradic
#562C82 #822C2D #58822C #2C8281
square
#562C82 #822C2D #58822C #2C8281
split-complementary
#562C82 #82812C #2D822C
monochromatic
#1A0D27 #381D54 #562C82 #743BB0 #935FC9

Accessibility & contrast

On white

10.10
#562C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#562C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C82
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C82#FFFFFF#000000##FFFFFF
##562C821.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#0F4180
Tritanopia (blue-blind)
#4D3F53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562c82;
/* rgb */ color: rgb(86, 44, 130);
/* oklch */ color: oklch(39.4% 0.140 303.0);
Tailwind
colors: {
  custom: {
    50: '#8968a7',
    500: '#562c82',
    950: '#000000',
  },
}
SCSS
$custom: #562c82;
$custom-light: #8968a7;
$custom-dark: #000000;
JSON
{
  "hex": "#562c82",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 269.302,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39384,
    "c": 0.13952,
    "h": 303
  },
  "luminance": 0.05392
}

Semantic roles & 50–950 ramp

primary
#562C82
secondary
#86AF5B
accent
#D94F96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562C82

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

Preview Lab → · Contrast checker → · Palette generator →

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