#562871#562871

#562871 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.125 H 310.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#562871
RGBrgb(86, 40, 113)
HSLhsl(278, 48%, 30%)
HSVhsv(278, 65%, 44%)
CMYKcmyk(23.9%, 64.6%, 0%, 55.7%)
CIE-LABlab(25.83, 34.89, -33.70)
CIE-LCHlch(25.83, 48.51, 316.00°)
OKLaboklab(37.56% 0.082 -0.0949)
OKLCHoklch(37.56% 0.125 310.8)
XYZxyz(7.5766, 4.6884, 16.1254)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562871 #437128
analogous
#312871 #562871 #712868
triadic
#562871 #715628 #287156
tetradic
#562871 #713128 #437128 #286871
square
#562871 #713128 #437128 #286871
split-complementary
#562871 #687128 #287131
monochromatic
#110817 #341844 #562871 #78389E #9852C2

Accessibility & contrast

On white

10.84
#562871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#562871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562871
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562871#FFFFFF#000000##FFFFFF
##5628711.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093B73
Deuteranopia (green-blind)
#203E6F
Tritanopia (blue-blind)
#533648
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #562871;
/* rgb */ color: rgb(86, 40, 113);
/* oklch */ color: oklch(37.6% 0.125 310.8);
Tailwind
colors: {
  custom: {
    50: '#88659a',
    500: '#562871',
    950: '#000000',
  },
}
SCSS
$custom: #562871;
$custom-light: #88659a;
$custom-dark: #000000;
JSON
{
  "hex": "#562871",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 277.808,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.3756,
    "c": 0.12538,
    "h": 310.8
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#562871
secondary
#70A352
accent
#D75082
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #562871

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

Preview Lab → · Contrast checker → · Palette generator →

#562871 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva