#562E8D#562E8D

#562E8D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.150 H 298.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#562E8D
RGBrgb(86, 46, 141)
HSLhsl(265, 51%, 37%)
HSVhsv(265, 67%, 55%)
CMYKcmyk(39%, 67.4%, 0%, 44.7%)
CIE-LABlab(29.04, 38.87, -46.13)
CIE-LCHlch(29.04, 60.32, 310.12°)
OKLaboklab(40.53% 0.0724 -0.1314)
OKLCHoklch(40.53% 0.15 298.9)
XYZxyz(9.6213, 5.8554, 25.8174)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E8D #658D2E
analogous
#2E368D #562E8D #862E8D
triadic
#562E8D #8D562E #2E8D56
tetradic
#562E8D #8D2E36 #658D2E #2E8D86
square
#562E8D #8D2E36 #658D2E #2E8D86
split-complementary
#562E8D #8D862E #368D2E
monochromatic
#1E1031 #3A1F5F #562E8D #723DBB #9368CE

Accessibility & contrast

On white

9.67
#562E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#562E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E8D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E8D#FFFFFF#000000##FFFFFF
##562E8D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#494459
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562e8d;
/* rgb */ color: rgb(86, 46, 141);
/* oklch */ color: oklch(40.5% 0.150 298.9);
Tailwind
colors: {
  custom: {
    50: '#8a69af',
    500: '#562e8d',
    950: '#000000',
  },
}
SCSS
$custom: #562e8d;
$custom-light: #8a69af;
$custom-dark: #000000;
JSON
{
  "hex": "#562e8d",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 265.263,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.15002,
    "h": 298.9
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#562E8D
secondary
#92B562
accent
#DA4E9F
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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