#562F81#562F81

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

Color values

HEX#562F81
RGBrgb(86, 47, 129)
HSLhsl(269, 47%, 35%)
HSVhsv(269, 64%, 51%)
CMYKcmyk(33.3%, 63.6%, 0%, 49.4%)
CIE-LABlab(28.37, 35.08, -39.75)
CIE-LCHlch(28.37, 53.01, 311.43°)
OKLaboklab(39.76% 0.0722 -0.1126)
OKLCHoklch(39.76% 0.134 302.6)
XYZxyz(8.8158, 5.5964, 21.3804)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F81 #5A812F
analogous
#2F3181 #562F81 #7F2F81
triadic
#562F81 #81562F #2F8156
tetradic
#562F81 #812F31 #5A812F #2F817F
square
#562F81 #812F31 #5A812F #2F817F
split-complementary
#562F81 #817F2F #31812F
monochromatic
#1A0E27 #381F54 #562F81 #743FAE #9364C6

Accessibility & contrast

On white

9.91
#562F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #562F81
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F81#FFFFFF#000000##FFFFFF
##562F811.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#17437F
Tritanopia (blue-blind)
#4E4053
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562f81;
/* rgb */ color: rgb(86, 47, 129);
/* oklch */ color: oklch(39.8% 0.134 302.6);
Tailwind
colors: {
  custom: {
    50: '#896aa6',
    500: '#562f81',
    950: '#000000',
  },
}
SCSS
$custom: #562f81;
$custom-light: #896aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#562f81",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 268.537,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39758,
    "c": 0.13377,
    "h": 302.6
  },
  "luminance": 0.05596
}

Semantic roles & 50–950 ramp

primary
#562F81
secondary
#88AD5E
accent
#D65297
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562F81

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

Preview Lab → · Contrast checker → · Palette generator →

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