#562A88#562A88

#562A88 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.150 H 301.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#562A88
RGBrgb(86, 42, 136)
HSLhsl(268, 53%, 35%)
HSVhsv(268, 69%, 53%)
CMYKcmyk(36.8%, 69.1%, 0%, 46.7%)
CIE-LABlab(27.88, 39.68, -44.91)
CIE-LCHlch(27.88, 59.93, 311.46°)
OKLaboklab(39.57% 0.0776 -0.1278)
OKLCHoklch(39.57% 0.15 301.3)
XYZxyz(9.1086, 5.4119, 23.8525)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562A88 #5C882A
analogous
#2A2D88 #562A88 #852A88
triadic
#562A88 #88562A #2A8856
tetradic
#562A88 #882A2D #5C882A #2A8885
square
#562A88 #882A2D #5C882A #2A8885
split-complementary
#562A88 #88852A #2D882A
monochromatic
#1B0D2A #381C59 #562A88 #7438B7 #935FCE

Accessibility & contrast

On white

10.08
#562A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#562A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562A88
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562A88#FFFFFF#000000##FFFFFF
##562A881.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #562a88;
/* rgb */ color: rgb(86, 42, 136);
/* oklch */ color: oklch(39.6% 0.150 301.3);
Tailwind
colors: {
  custom: {
    50: '#8a67ab',
    500: '#562a88',
    950: '#000000',
  },
}
SCSS
$custom: #562a88;
$custom-light: #8a67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562a88",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 268.085,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39565,
    "c": 0.14956,
    "h": 301.3
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#562A88
secondary
#8AB35B
accent
#DC4C99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562A88

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

Preview Lab → · Contrast checker → · Palette generator →

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