#562D88#562D88

#562D88 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.145 H 300.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#562D88
RGBrgb(86, 45, 136)
HSLhsl(267, 50%, 35%)
HSVhsv(267, 67%, 53%)
CMYKcmyk(36.8%, 66.9%, 0%, 46.7%)
CIE-LABlab(28.47, 38.07, -43.96)
CIE-LCHlch(28.47, 58.15, 310.89°)
OKLaboklab(39.99% 0.0741 -0.125)
OKLCHoklch(39.99% 0.145 300.7)
XYZxyz(9.2190, 5.6327, 23.8893)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D88 #5F882D
analogous
#2D3188 #562D88 #832D88
triadic
#562D88 #88562D #2D8856
tetradic
#562D88 #882D31 #5F882D #2D8883
square
#562D88 #882D31 #5F882D #2D8883
split-complementary
#562D88 #88832D #31882D
monochromatic
#1C0F2C #391E5A #562D88 #733CB6 #9364CC

Accessibility & contrast

On white

9.87
#562D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D88
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D88#FFFFFF#000000##FFFFFF
##562D881.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#024386
Tritanopia (blue-blind)
#4B4156
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562d88;
/* rgb */ color: rgb(86, 45, 136);
/* oklch */ color: oklch(40.0% 0.145 300.7);
Tailwind
colors: {
  custom: {
    50: '#8a69ab',
    500: '#562d88',
    950: '#000000',
  },
}
SCSS
$custom: #562d88;
$custom-light: #8a69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#562d88",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 267.033,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39989,
    "c": 0.14536,
    "h": 300.7
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#562D88
secondary
#8DB25F
accent
#DA4E9B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562D88

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

Preview Lab → · Contrast checker → · Palette generator →

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