#562988#562988

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

Color values

HEX#562988
RGBrgb(86, 41, 136)
HSLhsl(268, 54%, 35%)
HSVhsv(268, 70%, 53%)
CMYKcmyk(36.8%, 69.9%, 0%, 46.7%)
CIE-LABlab(27.69, 40.21, -45.22)
CIE-LCHlch(27.69, 60.51, 311.64°)
OKLaboklab(39.43% 0.0788 -0.1287)
OKLCHoklch(39.43% 0.151 301.5)
XYZxyz(9.0736, 5.3418, 23.8408)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562988 #5B8829
analogous
#292C88 #562988 #862988
triadic
#562988 #885629 #298856
tetradic
#562988 #88292C #5B8829 #298886
square
#562988 #88292C #5B8829 #298886
split-complementary
#562988 #888629 #2C8829
monochromatic
#1B0D2A #381B59 #562988 #7437B7 #935DCE

Accessibility & contrast

On white

10.15
#562988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#562988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562988
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562988#FFFFFF#000000##FFFFFF
##5629881.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#4B3F55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #562988;
/* rgb */ color: rgb(86, 41, 136);
/* oklch */ color: oklch(39.4% 0.151 301.5);
Tailwind
colors: {
  custom: {
    50: '#8a66ab',
    500: '#562988',
    950: '#000000',
  },
}
SCSS
$custom: #562988;
$custom-light: #8a66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562988",
  "rgb": {
    "r": 86,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 268.421,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39429,
    "c": 0.15092,
    "h": 301.5
  },
  "luminance": 0.05342
}

Semantic roles & 50–950 ramp

primary
#562988
secondary
#89B459
accent
#DD4B98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562988

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

Preview Lab → · Contrast checker → · Palette generator →

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