#562A89#562A89

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

Color values

HEX#562A89
RGBrgb(86, 42, 137)
HSLhsl(268, 53%, 35%)
HSVhsv(268, 69%, 54%)
CMYKcmyk(37.2%, 69.3%, 0%, 46.3%)
CIE-LABlab(27.95, 39.95, -45.41)
CIE-LCHlch(27.95, 60.48, 311.34°)
OKLaboklab(39.65% 0.0775 -0.1293)
OKLCHoklch(39.65% 0.151 300.9)
XYZxyz(9.1800, 5.4404, 24.2285)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A89 #5D892A
analogous
#2A2E89 #562A89 #852A89
triadic
#562A89 #89562A #2A8956
tetradic
#562A89 #892A2E #5D892A #2A8985
square
#562A89 #892A2E #5D892A #2A8985
split-complementary
#562A89 #89852A #2E892A
monochromatic
#1B0D2B #391C5A #562A89 #7338B8 #935FCE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562A89#FFFFFF#000000##FFFFFF
##562A891.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)
#00428C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#4B4056
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562a89;
/* rgb */ color: rgb(86, 42, 137);
/* oklch */ color: oklch(39.6% 0.151 300.9);
Tailwind
colors: {
  custom: {
    50: '#8a67ac',
    500: '#562a89',
    950: '#000000',
  },
}
SCSS
$custom: #562a89;
$custom-light: #8a67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#562a89",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 137
  },
  "hsl": {
    "h": 267.789,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39645,
    "c": 0.15074,
    "h": 300.9
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#562A89
secondary
#8BB45B
accent
#DC4B99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A89

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

Preview Lab → · Contrast checker → · Palette generator →

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