#562A7B#562A7B

#562A7B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.6% C 0.134 H 306.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#562A7B
RGBrgb(86, 42, 123)
HSLhsl(273, 49%, 32%)
HSVhsv(273, 66%, 48%)
CMYKcmyk(30.1%, 65.9%, 0%, 51.8%)
CIE-LABlab(26.92, 36.30, -38.31)
CIE-LCHlch(26.92, 52.78, 313.46°)
OKLaboklab(38.57% 0.0789 -0.1084)
OKLCHoklch(38.57% 0.134 306.1)
XYZxyz(8.2401, 5.0645, 19.2785)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A7B #4F7B2A
analogous
#2E2A7B #562A7B #7B2A77
triadic
#562A7B #7B562A #2A7B56
tetradic
#562A7B #7B2E2A #4F7B2A #2A777B
square
#562A7B #7B2E2A #4F7B2A #2A777B
split-complementary
#562A7B #777B2A #2A7B2E
monochromatic
#160B20 #361A4D #562A7B #763AA9 #9459C6

Accessibility & contrast

On white

10.43
#562A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#562A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A7B
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A7B#FFFFFF#000000##FFFFFF
##562A7B1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#503B4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562a7b;
/* rgb */ color: rgb(86, 42, 123);
/* oklch */ color: oklch(38.6% 0.134 306.1);
Tailwind
colors: {
  custom: {
    50: '#8966a2',
    500: '#562a7b',
    950: '#000000',
  },
}
SCSS
$custom: #562a7b;
$custom-light: #8966a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562a7b",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 272.593,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.1341,
    "h": 306.1
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#562A7B
secondary
#7DAC55
accent
#D94F8E
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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