#562F89#562F89

#562F89 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.144 H 299.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#562F89
RGBrgb(86, 47, 137)
HSLhsl(266, 49%, 36%)
HSVhsv(266, 66%, 54%)
CMYKcmyk(37.2%, 65.7%, 0%, 46.3%)
CIE-LABlab(28.95, 37.23, -43.80)
CIE-LCHlch(28.95, 57.49, 310.36°)
OKLaboklab(40.36% 0.0716 -0.1246)
OKLCHoklch(40.36% 0.144 299.9)
XYZxyz(9.3685, 5.8175, 24.2914)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F89 #62892F
analogous
#2F3589 #562F89 #832F89
triadic
#562F89 #89562F #2F8956
tetradic
#562F89 #892F35 #62892F #2F8983
square
#562F89 #892F35 #62892F #2F8983
split-complementary
#562F89 #89832F #35892F
monochromatic
#1D102E #391F5B #562F89 #733FB7 #9367CB

Accessibility & contrast

On white

9.71
#562F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#562F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F89
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F89#FFFFFF#000000##FFFFFF
##562F891.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#054487
Tritanopia (blue-blind)
#4B4357
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562f89;
/* rgb */ color: rgb(86, 47, 137);
/* oklch */ color: oklch(40.4% 0.144 299.9);
Tailwind
colors: {
  custom: {
    50: '#8a6aac',
    500: '#562f89',
    950: '#000000',
  },
}
SCSS
$custom: #562f89;
$custom-light: #8a6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#562f89",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 266,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4036,
    "c": 0.14369,
    "h": 299.9
  },
  "luminance": 0.05818
}

Semantic roles & 50–950 ramp

primary
#562F89
secondary
#8FB262
accent
#D84F9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F89

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

Preview Lab → · Contrast checker → · Palette generator →

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