#562D80#562D80

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

Color values

HEX#562D80
RGBrgb(86, 45, 128)
HSLhsl(270, 48%, 34%)
HSVhsv(270, 65%, 50%)
CMYKcmyk(32.8%, 64.8%, 0%, 49.8%)
CIE-LABlab(27.88, 35.94, -39.91)
CIE-LCHlch(27.88, 53.71, 312.01°)
OKLaboklab(39.38% 0.0748 -0.1131)
OKLCHoklch(39.38% 0.136 303.5)
XYZxyz(8.6715, 5.4137, 21.0060)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D80 #57802D
analogous
#2D2D80 #562D80 #802D80
triadic
#562D80 #80562D #2D8056
tetradic
#562D80 #802D2D #57802D #2D8080
square
#562D80 #802D2D #57802D #2D8080
split-complementary
#562D80 #80802D #2D802D
monochromatic
#190D25 #381D53 #562D80 #743DAD #9360C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##562D80#FFFFFF#000000##FFFFFF
##562D801.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)
#004183
Deuteranopia (green-blind)
#15427E
Tritanopia (blue-blind)
#4E3F52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #562d80;
/* rgb */ color: rgb(86, 45, 128);
/* oklch */ color: oklch(39.4% 0.136 303.5);
Tailwind
colors: {
  custom: {
    50: '#8968a5',
    500: '#562d80',
    950: '#000000',
  },
}
SCSS
$custom: #562d80;
$custom-light: #8968a5;
$custom-dark: #000000;
JSON
{
  "hex": "#562d80",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 269.639,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39381,
    "c": 0.1356,
    "h": 303.5
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#562D80
secondary
#85AE5B
accent
#D85095
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562D80

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

Preview Lab → · Contrast checker → · Palette generator →

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