#562F8E#562F8E

#562F8E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.150 H 298.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#562F8E
RGBrgb(86, 47, 142)
HSLhsl(265, 50%, 37%)
HSVhsv(265, 67%, 56%)
CMYKcmyk(39.4%, 66.9%, 0%, 44.3%)
CIE-LABlab(29.32, 38.59, -46.29)
CIE-LCHlch(29.32, 60.27, 309.81°)
OKLaboklab(40.75% 0.0711 -0.1319)
OKLCHoklch(40.75% 0.15 298.3)
XYZxyz(9.7355, 5.9643, 26.2243)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F8E #678E2F
analogous
#2F378E #562F8E #862F8E
triadic
#562F8E #8E562F #2F8E56
tetradic
#562F8E #8E2F37 #678E2F #2F8E86
square
#562F8E #8E2F37 #678E2F #2F8E86
split-complementary
#562F8E #8E862F #378E2F
monochromatic
#1E1132 #3A2060 #562F8E #723EBC #936ACE

Accessibility & contrast

On white

9.58
#562F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#562F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F8E
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F8E#FFFFFF#000000##FFFFFF
##562F8E1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#49455A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562f8e;
/* rgb */ color: rgb(86, 47, 142);
/* oklch */ color: oklch(40.7% 0.150 298.3);
Tailwind
colors: {
  custom: {
    50: '#8a6ab0',
    500: '#562f8e',
    950: '#000000',
  },
}
SCSS
$custom: #562f8e;
$custom-light: #8a6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#562f8e",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 264.632,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40749,
    "c": 0.14985,
    "h": 298.3
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

primary
#562F8E
secondary
#94B564
accent
#DA4EA0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #562F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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