#562F82#562F82

#562F82 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.135 H 302.3°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#562F82
RGBrgb(86, 47, 130)
HSLhsl(268, 47%, 35%)
HSVhsv(268, 64%, 51%)
CMYKcmyk(33.8%, 63.8%, 0%, 49%)
CIE-LABlab(28.44, 35.34, -40.26)
CIE-LCHlch(28.44, 53.57, 311.28°)
OKLaboklab(39.83% 0.0721 -0.1142)
OKLCHoklch(39.83% 0.135 302.3)
XYZxyz(8.8826, 5.6232, 21.7322)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F82 #5B822F
analogous
#2F3182 #562F82 #802F82
triadic
#562F82 #82562F #2F8256
tetradic
#562F82 #822F31 #5B822F #2F8280
square
#562F82 #822F31 #5B822F #2F8280
split-complementary
#562F82 #82802F #31822F
monochromatic
#1B0E28 #381F55 #562F82 #743FAF #9364C7

Accessibility & contrast

On white

9.88
#562F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#562F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F82
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F82#FFFFFF#000000##FFFFFF
##562F821.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#164380
Tritanopia (blue-blind)
#4D4154
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562f82;
/* rgb */ color: rgb(86, 47, 130);
/* oklch */ color: oklch(39.8% 0.135 302.3);
Tailwind
colors: {
  custom: {
    50: '#896aa7',
    500: '#562f82',
    950: '#000000',
  },
}
SCSS
$custom: #562f82;
$custom-light: #896aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#562f82",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 268.193,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39832,
    "c": 0.13502,
    "h": 302.3
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#562F82
secondary
#89AE5F
accent
#D75198
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562F82

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

Preview Lab → · Contrast checker → · Palette generator →

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