#562A85#562A85

#562A85 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.146 H 302.3°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#562A85
RGBrgb(86, 42, 133)
HSLhsl(269, 52%, 34%)
HSVhsv(269, 68%, 52%)
CMYKcmyk(35.3%, 68.4%, 0%, 47.8%)
CIE-LABlab(27.65, 38.89, -43.41)
CIE-LCHlch(27.65, 58.29, 311.86°)
OKLaboklab(39.33% 0.078 -0.1234)
OKLCHoklch(39.33% 0.146 302.3)
XYZxyz(8.8984, 5.3278, 22.7453)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A85 #59852A
analogous
#2A2C85 #562A85 #842A85
triadic
#562A85 #85562A #2A8556
tetradic
#562A85 #852A2C #59852A #2A8584
square
#562A85 #852A2C #59852A #2A8584
split-complementary
#562A85 #85842A #2C852A
monochromatic
#1A0D28 #381B56 #562A85 #7439B4 #935DCC

Accessibility & contrast

On white

10.17
#562A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A85
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A85#FFFFFF#000000##FFFFFF
##562A851.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004188
Deuteranopia (green-blind)
#024183
Tritanopia (blue-blind)
#4C3E54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562a85;
/* rgb */ color: rgb(86, 42, 133);
/* oklch */ color: oklch(39.3% 0.146 302.3);
Tailwind
colors: {
  custom: {
    50: '#8a67a9',
    500: '#562a85',
    950: '#000000',
  },
}
SCSS
$custom: #562a85;
$custom-light: #8a67a9;
$custom-dark: #000000;
JSON
{
  "hex": "#562a85",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 269.011,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39329,
    "c": 0.146,
    "h": 302.3
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#562A85
secondary
#87B259
accent
#DB4C96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A85

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

Preview Lab → · Contrast checker → · Palette generator →

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