#562A9C#562A9C

#562A9C is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.173 H 295.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#562A9C
RGBrgb(86, 42, 156)
HSLhsl(263, 58%, 39%)
HSVhsv(263, 73%, 61%)
CMYKcmyk(44.9%, 73.1%, 0%, 38.8%)
CIE-LABlab(29.50, 45.05, -54.59)
CIE-LCHlch(29.50, 70.78, 309.53°)
OKLaboklab(41.23% 0.0741 -0.1563)
OKLCHoklch(41.23% 0.173 295.4)
XYZxyz(10.6649, 6.0344, 32.0489)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A9C #709C2A
analogous
#2A379C #562A9C #8F2A9C
triadic
#562A9C #9C562A #2A9C56
tetradic
#562A9C #9C2A37 #709C2A #2A9C8F
square
#562A9C #9C2A37 #709C2A #2A9C8F
split-complementary
#562A9C #9C8F2A #379C2A
monochromatic
#21103C #3B1D6C #562A9C #7139CA #946AD7

Accessibility & contrast

On white

9.52
#562A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#562A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A9C
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A9C#FFFFFF#000000##FFFFFF
##562A9C1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#434760
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562a9c;
/* rgb */ color: rgb(86, 42, 156);
/* oklch */ color: oklch(41.2% 0.173 295.4);
Tailwind
colors: {
  custom: {
    50: '#8c68ba',
    500: '#562a9c',
    950: '#000000',
  },
}
SCSS
$custom: #562a9c;
$custom-light: #8c68ba;
$custom-dark: #000000;
JSON
{
  "hex": "#562a9c",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 263.158,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41228,
    "c": 0.17295,
    "h": 295.4
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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