#562B7B#562B7B

#562B7B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.133 H 305.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#562B7B
RGBrgb(86, 43, 123)
HSLhsl(272, 48%, 33%)
HSVhsv(272, 65%, 48%)
CMYKcmyk(30.1%, 65%, 0%, 51.8%)
CIE-LABlab(27.12, 35.75, -37.98)
CIE-LCHlch(27.12, 52.16, 313.27°)
OKLaboklab(38.72% 0.0776 -0.1075)
OKLCHoklch(38.72% 0.133 305.8)
XYZxyz(8.2760, 5.1363, 19.2905)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B7B #507B2B
analogous
#2E2B7B #562B7B #7B2B78
triadic
#562B7B #7B562B #2B7B56
tetradic
#562B7B #7B2E2B #507B2B #2B787B
square
#562B7B #7B2E2B #507B2B #2B787B
split-complementary
#562B7B #787B2B #2B7B2E
monochromatic
#170B20 #361B4E #562B7B #763BA8 #945BC6

Accessibility & contrast

On white

10.36
#562B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#562B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B7B
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B7B#FFFFFF#000000##FFFFFF
##562B7B1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#503B4F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #562b7b;
/* rgb */ color: rgb(86, 43, 123);
/* oklch */ color: oklch(38.7% 0.133 305.8);
Tailwind
colors: {
  custom: {
    50: '#8967a2',
    500: '#562b7b',
    950: '#000000',
  },
}
SCSS
$custom: #562b7b;
$custom-light: #8967a2;
$custom-dark: #000000;
JSON
{
  "hex": "#562b7b",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 272.25,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.13258,
    "h": 305.8
  },
  "luminance": 0.05136
}

Semantic roles & 50–950 ramp

primary
#562B7B
secondary
#7EAB56
accent
#D8508F
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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