#562E7C#562E7C

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

Color values

HEX#562E7C
RGBrgb(86, 46, 124)
HSLhsl(271, 46%, 33%)
HSVhsv(271, 63%, 49%)
CMYKcmyk(30.6%, 62.9%, 0%, 51.4%)
CIE-LABlab(27.81, 34.33, -37.50)
CIE-LCHlch(27.81, 50.84, 312.47°)
OKLaboklab(39.24% 0.0736 -0.1061)
OKLCHoklch(39.24% 0.129 304.8)
XYZxyz(8.4520, 5.3877, 19.6595)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E7C #547C2E
analogous
#2F2E7C #562E7C #7C2E7B
triadic
#562E7C #7C562E #2E7C56
tetradic
#562E7C #7C2F2E #547C2E #2E7B7C
square
#562E7C #7C2F2E #547C2E #2E7B7C
split-complementary
#562E7C #7B7C2E #2E7C2F
monochromatic
#180D23 #371D4F #562E7C #753FA9 #9360C4

Accessibility & contrast

On white

10.11
#562E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562E7C
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E7C#FFFFFF#000000##FFFFFF
##562E7C1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05417E
Deuteranopia (green-blind)
#1C427A
Tritanopia (blue-blind)
#4F3E50
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562e7c;
/* rgb */ color: rgb(86, 46, 124);
/* oklch */ color: oklch(39.2% 0.129 304.8);
Tailwind
colors: {
  custom: {
    50: '#8969a2',
    500: '#562e7c',
    950: '#000000',
  },
}
SCSS
$custom: #562e7c;
$custom-light: #8969a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562e7c",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 270.769,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.12912,
    "h": 304.8
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#562E7C
secondary
#82AB5B
accent
#D65292
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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