#562B88#562B88

#562B88 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.148 H 301.1°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#562B88
RGBrgb(86, 43, 136)
HSLhsl(268, 52%, 35%)
HSVhsv(268, 68%, 53%)
CMYKcmyk(36.8%, 68.4%, 0%, 46.7%)
CIE-LABlab(28.07, 39.15, -44.60)
CIE-LCHlch(28.07, 59.35, 311.28°)
OKLaboklab(39.7% 0.0765 -0.1269)
OKLCHoklch(39.7% 0.148 301.1)
XYZxyz(9.1445, 5.4837, 23.8645)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B88 #5D882B
analogous
#2B2F88 #562B88 #842B88
triadic
#562B88 #88562B #2B8856
tetradic
#562B88 #882B2F #5D882B #2B8884
square
#562B88 #882B2F #5D882B #2B8884
split-complementary
#562B88 #88842B #2F882B
monochromatic
#1B0E2B #391C5A #562B88 #733AB6 #9361CD

Accessibility & contrast

On white

10.02
#562B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#562B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B88
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B88#FFFFFF#000000##FFFFFF
##562B881.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#4B4056
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562b88;
/* rgb */ color: rgb(86, 43, 136);
/* oklch */ color: oklch(39.7% 0.148 301.1);
Tailwind
colors: {
  custom: {
    50: '#8a67ab',
    500: '#562b88',
    950: '#000000',
  },
}
SCSS
$custom: #562b88;
$custom-light: #8a67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562b88",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 267.742,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39704,
    "c": 0.14817,
    "h": 301.1
  },
  "luminance": 0.05484
}

Semantic roles & 50–950 ramp

primary
#562B88
secondary
#8BB35C
accent
#DB4C99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562B88

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

Preview Lab → · Contrast checker → · Palette generator →

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