#562B7A#562B7A

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

Color values

HEX#562B7A
RGBrgb(86, 43, 122)
HSLhsl(273, 48%, 32%)
HSVhsv(273, 65%, 48%)
CMYKcmyk(29.5%, 64.8%, 0%, 52.2%)
CIE-LABlab(27.05, 35.50, -37.46)
CIE-LCHlch(27.05, 51.61, 313.46°)
OKLaboklab(38.64% 0.0777 -0.1059)
OKLCHoklch(38.64% 0.131 306.3)
XYZxyz(8.2137, 5.1114, 18.9625)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B7A #4F7A2B
analogous
#2E2B7A #562B7A #7A2B77
triadic
#562B7A #7A562B #2B7A56
tetradic
#562B7A #7A2E2B #4F7A2B #2B777A
square
#562B7A #7A2E2B #4F7A2B #2B777A
split-complementary
#562B7A #777A2B #2B7A2E
monochromatic
#160B1F #361B4D #562B7A #763BA7 #945AC5

Accessibility & contrast

On white

10.38
#562B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#562B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B7A
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B7A#FFFFFF#000000##FFFFFF
##562B7A1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7C
Deuteranopia (green-blind)
#1A4078
Tritanopia (blue-blind)
#503B4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562b7a;
/* rgb */ color: rgb(86, 43, 122);
/* oklch */ color: oklch(38.6% 0.131 306.3);
Tailwind
colors: {
  custom: {
    50: '#8967a1',
    500: '#562b7a',
    950: '#000000',
  },
}
SCSS
$custom: #562b7a;
$custom-light: #8967a1;
$custom-dark: #000000;
JSON
{
  "hex": "#562b7a",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 272.658,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38643,
    "c": 0.13137,
    "h": 306.3
  },
  "luminance": 0.05111
}

Semantic roles & 50–950 ramp

primary
#562B7A
secondary
#7DAB56
accent
#D7508E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #562B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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