#562E7B#562E7B

#562E7B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.128 H 305.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#562E7B
RGBrgb(86, 46, 123)
HSLhsl(271, 46%, 33%)
HSVhsv(271, 63%, 48%)
CMYKcmyk(30.1%, 62.6%, 0%, 51.8%)
CIE-LABlab(27.74, 34.07, -36.98)
CIE-LCHlch(27.74, 50.28, 312.65°)
OKLaboklab(39.17% 0.0737 -0.1045)
OKLCHoklch(39.17% 0.128 305.2)
XYZxyz(8.3891, 5.3625, 19.3282)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E7B #537B2E
analogous
#2F2E7B #562E7B #7B2E79
triadic
#562E7B #7B562E #2E7B56
tetradic
#562E7B #7B2F2E #537B2E #2E797B
square
#562E7B #7B2F2E #537B2E #2E797B
split-complementary
#562E7B #797B2E #2E7B2F
monochromatic
#180D22 #371D4E #562E7B #753FA8 #9460C3

Accessibility & contrast

On white

10.13
#562E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E7B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E7B#FFFFFF#000000##FFFFFF
##562E7B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407D
Deuteranopia (green-blind)
#1D4279
Tritanopia (blue-blind)
#503D50
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562e7b;
/* rgb */ color: rgb(86, 46, 123);
/* oklch */ color: oklch(39.2% 0.128 305.2);
Tailwind
colors: {
  custom: {
    50: '#8869a2',
    500: '#562e7b',
    950: '#000000',
  },
}
SCSS
$custom: #562e7b;
$custom-light: #8869a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562e7b",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 271.169,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.12789,
    "h": 305.2
  },
  "luminance": 0.05362
}

Semantic roles & 50–950 ramp

primary
#562E7B
secondary
#81AA5B
accent
#D55391
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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