#562C8B#562C8B

#562C8B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.150 H 299.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#562C8B
RGBrgb(86, 44, 139)
HSLhsl(267, 52%, 36%)
HSVhsv(267, 68%, 55%)
CMYKcmyk(38.1%, 68.3%, 0%, 45.5%)
CIE-LABlab(28.50, 39.41, -45.78)
CIE-LCHlch(28.50, 60.41, 310.73°)
OKLaboklab(40.08% 0.075 -0.1304)
OKLCHoklch(40.08% 0.15 299.9)
XYZxyz(9.3975, 5.6438, 25.0153)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C8B #618B2C
analogous
#2C318B #562C8B #852C8B
triadic
#562C8B #8B562C #2C8B56
tetradic
#562C8B #8B2C31 #618B2C #2C8B85
square
#562C8B #8B2C31 #618B2C #2C8B85
split-complementary
#562C8B #8B852C #318B2C
monochromatic
#1C0F2E #391D5D #562C8B #733BB9 #9364CE

Accessibility & contrast

On white

9.86
#562C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C8B
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C8B#FFFFFF#000000##FFFFFF
##562C8B1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#4A4257
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562c8b;
/* rgb */ color: rgb(86, 44, 139);
/* oklch */ color: oklch(40.1% 0.150 299.9);
Tailwind
colors: {
  custom: {
    50: '#8a68ae',
    500: '#562c8b',
    950: '#000000',
  },
}
SCSS
$custom: #562c8b;
$custom-light: #8a68ae;
$custom-dark: #000000;
JSON
{
  "hex": "#562c8b",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 266.526,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40082,
    "c": 0.15038,
    "h": 299.9
  },
  "luminance": 0.05644
}

Semantic roles & 50–950 ramp

primary
#562C8B
secondary
#8EB45F
accent
#DB4C9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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