#562E7D#562E7D

#562E7D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.130 H 304.4°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#562E7D
RGBrgb(86, 46, 125)
HSLhsl(270, 46%, 34%)
HSVhsv(270, 63%, 49%)
CMYKcmyk(31.2%, 63.2%, 0%, 51%)
CIE-LABlab(27.88, 34.59, -38.02)
CIE-LCHlch(27.88, 51.40, 312.30°)
OKLaboklab(39.31% 0.0736 -0.1076)
OKLCHoklch(39.31% 0.13 304.4)
XYZxyz(8.5156, 5.4131, 19.9943)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E7D #557D2E
analogous
#2E2E7D #562E7D #7D2E7C
triadic
#562E7D #7D562E #2E7D56
tetradic
#562E7D #7D2E2E #557D2E #2E7C7D
square
#562E7D #7D2E2E #557D2E #2E7C7D
split-complementary
#562E7D #7C7D2E #2E7D2E
monochromatic
#180D24 #371E50 #562E7D #753EAA #9361C5

Accessibility & contrast

On white

10.08
#562E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#562E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E7D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E7D#FFFFFF#000000##FFFFFF
##562E7D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562e7d;
/* rgb */ color: rgb(86, 46, 125);
/* oklch */ color: oklch(39.3% 0.130 304.4);
Tailwind
colors: {
  custom: {
    50: '#8969a3',
    500: '#562e7d',
    950: '#000000',
  },
}
SCSS
$custom: #562e7d;
$custom-light: #8969a3;
$custom-dark: #000000;
JSON
{
  "hex": "#562e7d",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 270.38,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39313,
    "c": 0.13037,
    "h": 304.4
  },
  "luminance": 0.05413
}

Semantic roles & 50–950 ramp

primary
#562E7D
secondary
#83AB5B
accent
#D65293
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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