#562887#562887

#562887 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.151 H 302.0°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#562887
RGBrgb(86, 40, 135)
HSLhsl(269, 54%, 34%)
HSVhsv(269, 70%, 53%)
CMYKcmyk(36.3%, 70.4%, 0%, 47.1%)
CIE-LABlab(27.42, 40.47, -45.03)
CIE-LCHlch(27.42, 60.54, 311.95°)
OKLaboklab(39.22% 0.0801 -0.1281)
OKLCHoklch(39.22% 0.151 302)
XYZxyz(8.9687, 5.2453, 23.4569)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562887 #598728
analogous
#282987 #562887 #862887
triadic
#562887 #875628 #288756
tetradic
#562887 #872829 #598728 #288786
square
#562887 #872829 #598728 #288786
split-complementary
#562887 #878628 #298728
monochromatic
#1A0C29 #381A58 #562887 #7436B6 #935BCE

Accessibility & contrast

On white

10.25
#562887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#562887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562887
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562887#FFFFFF#000000##FFFFFF
##5628871.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#4C3E54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562887;
/* rgb */ color: rgb(86, 40, 135);
/* oklch */ color: oklch(39.2% 0.151 302.0);
Tailwind
colors: {
  custom: {
    50: '#8a66ab',
    500: '#562887',
    950: '#000000',
  },
}
SCSS
$custom: #562887;
$custom-light: #8a66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562887",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 269.053,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39215,
    "c": 0.1511,
    "h": 302
  },
  "luminance": 0.05245
}

Semantic roles & 50–950 ramp

primary
#562887
secondary
#87B457
accent
#DE4A96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562887

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

Preview Lab → · Contrast checker → · Palette generator →

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