#562A86#562A86

#562A86 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.147 H 302.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#562A86
RGBrgb(86, 42, 134)
HSLhsl(269, 52%, 35%)
HSVhsv(269, 69%, 53%)
CMYKcmyk(35.8%, 68.7%, 0%, 47.5%)
CIE-LABlab(27.72, 39.16, -43.91)
CIE-LCHlch(27.72, 58.84, 311.72°)
OKLaboklab(39.41% 0.0779 -0.1249)
OKLCHoklch(39.41% 0.147 302)
XYZxyz(8.9678, 5.3556, 23.1109)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A86 #5A862A
analogous
#2A2C86 #562A86 #842A86
triadic
#562A86 #86562A #2A8656
tetradic
#562A86 #862A2C #5A862A #2A8684
square
#562A86 #862A2C #5A862A #2A8684
split-complementary
#562A86 #86842A #2C862A
monochromatic
#1A0D29 #381B57 #562A86 #7439B5 #935ECD

Accessibility & contrast

On white

10.14
#562A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562A86
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A86#FFFFFF#000000##FFFFFF
##562A861.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#004184
Tritanopia (blue-blind)
#4C3F54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562a86;
/* rgb */ color: rgb(86, 42, 134);
/* oklch */ color: oklch(39.4% 0.147 302.0);
Tailwind
colors: {
  custom: {
    50: '#8a67aa',
    500: '#562a86',
    950: '#000000',
  },
}
SCSS
$custom: #562a86;
$custom-light: #8a67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#562a86",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 134
  },
  "hsl": {
    "h": 268.696,
    "s": 52.273,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39408,
    "c": 0.14719,
    "h": 302
  },
  "luminance": 0.05356
}

Semantic roles & 50–950 ramp

primary
#562A86
secondary
#88B25A
accent
#DC4C97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A86

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

Preview Lab → · Contrast checker → · Palette generator →

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