#562A9F#562A9F

#562A9F is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.176 H 294.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#562A9F
RGBrgb(86, 42, 159)
HSLhsl(263, 58%, 39%)
HSVhsv(263, 74%, 62%)
CMYKcmyk(45.9%, 73.6%, 0%, 37.6%)
CIE-LABlab(29.76, 45.86, -56.00)
CIE-LCHlch(29.76, 72.38, 309.32°)
OKLaboklab(41.49% 0.0734 -0.1604)
OKLCHoklch(41.49% 0.176 294.6)
XYZxyz(10.9220, 6.1373, 33.4033)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A9F #739F2A
analogous
#2A399F #562A9F #912A9F
triadic
#562A9F #9F562A #2A9F56
tetradic
#562A9F #9F2A39 #739F2A #2A9F91
square
#562A9F #9F2A39 #739F2A #2A9F91
split-complementary
#562A9F #9F912A #399F2A
monochromatic
#22103E #3C1D6F #562A9F #713BCB #946BD8

Accessibility & contrast

On white

9.43
#562A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#562A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A9F
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A9F#FFFFFF#000000##FFFFFF
##562A9F1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#414862
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #562a9f;
/* rgb */ color: rgb(86, 42, 159);
/* oklch */ color: oklch(41.5% 0.176 294.6);
Tailwind
colors: {
  custom: {
    50: '#8d68bc',
    500: '#562a9f',
    950: '#000000',
  },
}
SCSS
$custom: #562a9f;
$custom-light: #8d68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#562a9f",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 262.564,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4149,
    "c": 0.17641,
    "h": 294.6
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#562A9F
secondary
#9DBF66
accent
#E146A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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