#562E7E#562E7E

#562E7E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.132 H 304.0°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#562E7E
RGBrgb(86, 46, 126)
HSLhsl(270, 47%, 34%)
HSVhsv(270, 63%, 49%)
CMYKcmyk(31.7%, 63.5%, 0%, 50.6%)
CIE-LABlab(27.95, 34.85, -38.54)
CIE-LCHlch(27.95, 51.96, 312.12°)
OKLaboklab(39.39% 0.0736 -0.1091)
OKLCHoklch(39.39% 0.132 304)
XYZxyz(8.5798, 5.4388, 20.3324)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E7E #567E2E
analogous
#2E2E7E #562E7E #7E2E7E
triadic
#562E7E #7E562E #2E7E56
tetradic
#562E7E #7E2E2E #567E2E #2E7E7E
square
#562E7E #7E2E2E #567E2E #2E7E7E
split-complementary
#562E7E #7E7E2E #2E7E2E
monochromatic
#190D24 #371E51 #562E7E #753EAB #9361C5

Accessibility & contrast

On white

10.06
#562E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#562E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E7E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E7E#FFFFFF#000000##FFFFFF
##562E7E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014181
Deuteranopia (green-blind)
#1A427C
Tritanopia (blue-blind)
#4F3E51
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562e7e;
/* rgb */ color: rgb(86, 46, 126);
/* oklch */ color: oklch(39.4% 0.132 304.0);
Tailwind
colors: {
  custom: {
    50: '#8969a4',
    500: '#562e7e',
    950: '#000000',
  },
}
SCSS
$custom: #562e7e;
$custom-light: #8969a4;
$custom-dark: #000000;
JSON
{
  "hex": "#562e7e",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 270,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39386,
    "c": 0.1316,
    "h": 304
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#562E7E
secondary
#84AC5C
accent
#D65294
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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