#562987#562987

#562987 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.150 H 301.8°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#562987
RGBrgb(86, 41, 135)
HSLhsl(269, 53%, 35%)
HSVhsv(269, 70%, 53%)
CMYKcmyk(36.3%, 69.6%, 0%, 47.1%)
CIE-LABlab(27.61, 39.95, -44.72)
CIE-LCHlch(27.61, 59.97, 311.77°)
OKLaboklab(39.35% 0.0789 -0.1273)
OKLCHoklch(39.35% 0.15 301.8)
XYZxyz(9.0028, 5.3135, 23.4683)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562987 #5A8729
analogous
#292B87 #562987 #852987
triadic
#562987 #875629 #298756
tetradic
#562987 #87292B #5A8729 #298785
square
#562987 #87292B #5A8729 #298785
split-complementary
#562987 #878529 #2B8729
monochromatic
#1A0C29 #381B58 #562987 #7437B6 #935DCE

Accessibility & contrast

On white

10.18
#562987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#562987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562987
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562987#FFFFFF#000000##FFFFFF
##5629871.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#4C3F54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562987;
/* rgb */ color: rgb(86, 41, 135);
/* oklch */ color: oklch(39.4% 0.150 301.8);
Tailwind
colors: {
  custom: {
    50: '#8a66ab',
    500: '#562987',
    950: '#000000',
  },
}
SCSS
$custom: #562987;
$custom-light: #8a66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562987",
  "rgb": {
    "r": 86,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 268.723,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3935,
    "c": 0.14974,
    "h": 301.8
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#562987
secondary
#88B359
accent
#DD4B97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562987

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

Preview Lab → · Contrast checker → · Palette generator →

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