#562E81#562E81

#562E81 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.135 H 302.9°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#562E81
RGBrgb(86, 46, 129)
HSLhsl(269, 47%, 34%)
HSVhsv(269, 64%, 51%)
CMYKcmyk(33.3%, 64.3%, 0%, 49.4%)
CIE-LABlab(28.16, 35.64, -40.08)
CIE-LCHlch(28.16, 53.64, 311.65°)
OKLaboklab(39.61% 0.0734 -0.1136)
OKLCHoklch(39.61% 0.135 302.9)
XYZxyz(8.7763, 5.5174, 21.3672)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E81 #59812E
analogous
#2E2F81 #562E81 #802E81
triadic
#562E81 #81562E #2E8156
tetradic
#562E81 #812E2F #59812E #2E8180
square
#562E81 #812E2F #59812E #2E8180
split-complementary
#562E81 #81802E #2F812E
monochromatic
#1A0E27 #381E54 #562E81 #743EAE #9362C7

Accessibility & contrast

On white

9.98
#562E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#562E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E81
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E81#FFFFFF#000000##FFFFFF
##562E811.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#15427F
Tritanopia (blue-blind)
#4E4053
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562e81;
/* rgb */ color: rgb(86, 46, 129);
/* oklch */ color: oklch(39.6% 0.135 302.9);
Tailwind
colors: {
  custom: {
    50: '#8969a6',
    500: '#562e81',
    950: '#000000',
  },
}
SCSS
$custom: #562e81;
$custom-light: #8969a6;
$custom-dark: #000000;
JSON
{
  "hex": "#562e81",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 268.916,
    "s": 47.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39606,
    "c": 0.13531,
    "h": 302.9
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#562E81
secondary
#87AE5D
accent
#D75196
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562E81

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

Preview Lab → · Contrast checker → · Palette generator →

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