#562E8A#562E8A

#562E8A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.146 H 299.8°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#562E8A
RGBrgb(86, 46, 138)
HSLhsl(266, 50%, 36%)
HSVhsv(266, 67%, 54%)
CMYKcmyk(37.7%, 66.7%, 0%, 45.9%)
CIE-LABlab(28.82, 38.05, -44.63)
CIE-LCHlch(28.82, 58.65, 310.45°)
OKLaboklab(40.29% 0.0727 -0.127)
OKLCHoklch(40.29% 0.146 299.8)
XYZxyz(9.4011, 5.7673, 24.6577)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E8A #628A2E
analogous
#2E348A #562E8A #842E8A
triadic
#562E8A #8A562E #2E8A56
tetradic
#562E8A #8A2E34 #628A2E #2E8A84
square
#562E8A #8A2E34 #628A2E #2E8A84
split-complementary
#562E8A #8A842E #348A2E
monochromatic
#1D0F2E #391F5C #562E8A #733DB8 #9366CC

Accessibility & contrast

On white

9.75
#562E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#562E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E8A
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E8A#FFFFFF#000000##FFFFFF
##562E8A1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#4A4358
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562e8a;
/* rgb */ color: rgb(86, 46, 138);
/* oklch */ color: oklch(40.3% 0.146 299.8);
Tailwind
colors: {
  custom: {
    50: '#8a69ad',
    500: '#562e8a',
    950: '#000000',
  },
}
SCSS
$custom: #562e8a;
$custom-light: #8a69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#562e8a",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 266.087,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4029,
    "c": 0.14636,
    "h": 299.8
  },
  "luminance": 0.05767
}

Semantic roles & 50–950 ramp

primary
#562E8A
secondary
#8FB361
accent
#DA4E9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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