#562A9B#562A9B

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

Color values

HEX#562A9B
RGBrgb(86, 42, 155)
HSLhsl(263, 57%, 39%)
HSVhsv(263, 73%, 61%)
CMYKcmyk(44.5%, 72.9%, 0%, 39.2%)
CIE-LABlab(29.41, 44.77, -54.12)
CIE-LCHlch(29.41, 70.24, 309.60°)
OKLaboklab(41.14% 0.0743 -0.1549)
OKLCHoklch(41.14% 0.172 295.6)
XYZxyz(10.5805, 6.0007, 31.6048)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A9B #6F9B2A
analogous
#2A369B #562A9B #8E2A9B
triadic
#562A9B #9B562A #2A9B56
tetradic
#562A9B #9B2A36 #6F9B2A #2A9B8E
square
#562A9B #9B2A36 #6F9B2A #2A9B8E
split-complementary
#562A9B #9B8E2A #369B2A
monochromatic
#21103B #3B1D6B #562A9B #7139C9 #9469D6

Accessibility & contrast

On white

9.54
#562A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#562A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A9B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A9B#FFFFFF#000000##FFFFFF
##562A9B1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#434760
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562a9b;
/* rgb */ color: rgb(86, 42, 155);
/* oklch */ color: oklch(41.1% 0.172 295.6);
Tailwind
colors: {
  custom: {
    50: '#8c68b9',
    500: '#562a9b',
    950: '#000000',
  },
}
SCSS
$custom: #562a9b;
$custom-light: #8c68b9;
$custom-dark: #000000;
JSON
{
  "hex": "#562a9b",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 263.363,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41142,
    "c": 0.1718,
    "h": 295.6
  },
  "luminance": 0.06001
}

Semantic roles & 50–950 ramp

primary
#562A9B
secondary
#9ABD64
accent
#E147A5
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #562A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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