#562C9E#562C9E

#562C9E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.173 H 294.5°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#562C9E
RGBrgb(86, 44, 158)
HSLhsl(262, 56%, 40%)
HSVhsv(262, 72%, 62%)
CMYKcmyk(45.6%, 72.2%, 0%, 38%)
CIE-LABlab(30.03, 44.58, -54.94)
CIE-LCHlch(30.03, 70.75, 309.05°)
OKLaboklab(41.66% 0.0718 -0.1573)
OKLCHoklch(41.66% 0.173 294.5)
XYZxyz(10.9083, 6.2481, 32.9724)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562C9E #749E2C
analogous
#2C3B9E #562C9E #8F2C9E
triadic
#562C9E #9E562C #2C9E56
tetradic
#562C9E #9E2C3B #749E2C #2C9E8F
square
#562C9E #9E2C3B #749E2C #2C9E8F
split-complementary
#562C9E #9E8F2C #3B9E2C
monochromatic
#22113E #3C1F6E #562C9E #713EC9 #946ED7

Accessibility & contrast

On white

9.33
#562C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#562C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562C9E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562C9E#FFFFFF#000000##FFFFFF
##562C9E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#424962
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #562c9e;
/* rgb */ color: rgb(86, 44, 158);
/* oklch */ color: oklch(41.7% 0.173 294.5);
Tailwind
colors: {
  custom: {
    50: '#8c69bc',
    500: '#562c9e',
    950: '#000000',
  },
}
SCSS
$custom: #562c9e;
$custom-light: #8c69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#562c9e",
  "rgb": {
    "r": 86,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 262.105,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41658,
    "c": 0.1729,
    "h": 294.5
  },
  "luminance": 0.06248
}

Semantic roles & 50–950 ramp

primary
#562C9E
secondary
#9EBE68
accent
#E048A8
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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