#562A9A#562A9A

#562A9A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.171 H 295.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#562A9A
RGBrgb(86, 42, 154)
HSLhsl(264, 57%, 38%)
HSVhsv(264, 73%, 60%)
CMYKcmyk(44.2%, 72.7%, 0%, 39.6%)
CIE-LABlab(29.33, 44.50, -53.65)
CIE-LCHlch(29.33, 69.71, 309.68°)
OKLaboklab(41.06% 0.0745 -0.1535)
OKLCHoklch(41.06% 0.171 295.9)
XYZxyz(10.4969, 5.9672, 31.1643)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A9A #6E9A2A
analogous
#2A369A #562A9A #8E2A9A
triadic
#562A9A #9A562A #2A9A56
tetradic
#562A9A #9A2A36 #6E9A2A #2A9A8E
square
#562A9A #9A2A36 #6E9A2A #2A9A8E
split-complementary
#562A9A #9A8E2A #369A2A
monochromatic
#20103A #3B1D6A #562A9A #7138C9 #9368D6

Accessibility & contrast

On white

9.57
#562A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#562A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A9A
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A9A#FFFFFF#000000##FFFFFF
##562A9A1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#44465F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562a9a;
/* rgb */ color: rgb(86, 42, 154);
/* oklch */ color: oklch(41.1% 0.171 295.9);
Tailwind
colors: {
  custom: {
    50: '#8c68b9',
    500: '#562a9a',
    950: '#000000',
  },
}
SCSS
$custom: #562a9a;
$custom-light: #8c68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#562a9a",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 263.571,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41056,
    "c": 0.17064,
    "h": 295.9
  },
  "luminance": 0.05967
}

Semantic roles & 50–950 ramp

primary
#562A9A
secondary
#99BC63
accent
#E047A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #562A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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