#562F8A#562F8A

#562F8A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.145 H 299.6°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#562F8A
RGBrgb(86, 47, 138)
HSLhsl(266, 49%, 36%)
HSVhsv(266, 66%, 54%)
CMYKcmyk(37.7%, 65.9%, 0%, 45.9%)
CIE-LABlab(29.02, 37.50, -44.31)
CIE-LCHlch(29.02, 58.04, 310.24°)
OKLaboklab(40.44% 0.0715 -0.126)
OKLCHoklch(40.44% 0.145 299.6)
XYZxyz(9.4406, 5.8463, 24.6709)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F8A #638A2F
analogous
#2F368A #562F8A #842F8A
triadic
#562F8A #8A562F #2F8A56
tetradic
#562F8A #8A2F36 #638A2F #2F8A84
square
#562F8A #8A2F36 #638A2F #2F8A84
split-complementary
#562F8A #8A842F #368A2F
monochromatic
#1D102F #3A1F5C #562F8A #723FB8 #9368CC

Accessibility & contrast

On white

9.68
#562F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562F8A
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F8A#FFFFFF#000000##FFFFFF
##562F8A1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562f8a;
/* rgb */ color: rgb(86, 47, 138);
/* oklch */ color: oklch(40.4% 0.145 299.6);
Tailwind
colors: {
  custom: {
    50: '#8a6aad',
    500: '#562f8a',
    950: '#000000',
  },
}
SCSS
$custom: #562f8a;
$custom-light: #8a6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#562f8a",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 265.714,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40437,
    "c": 0.14493,
    "h": 299.6
  },
  "luminance": 0.05846
}

Semantic roles & 50–950 ramp

primary
#562F8A
secondary
#90B362
accent
#D94F9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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