#562F86#562F86

#562F86 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.140 H 300.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#562F86
RGBrgb(86, 47, 134)
HSLhsl(267, 48%, 35%)
HSVhsv(267, 65%, 53%)
CMYKcmyk(35.8%, 64.9%, 0%, 47.5%)
CIE-LABlab(28.73, 36.42, -42.29)
CIE-LCHlch(28.73, 55.81, 310.73°)
OKLaboklab(40.13% 0.0719 -0.1201)
OKLCHoklch(40.13% 0.14 300.9)
XYZxyz(9.1563, 5.7326, 23.1738)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F86 #5F862F
analogous
#2F3386 #562F86 #812F86
triadic
#562F86 #86562F #2F8656
tetradic
#562F86 #862F33 #5F862F #2F8681
square
#562F86 #862F33 #5F862F #2F8681
split-complementary
#562F86 #86812F #33862F
monochromatic
#1C0F2B #391F59 #562F86 #733FB3 #9366C9

Accessibility & contrast

On white

9.78
#562F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#562F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F86
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F86#FFFFFF#000000##FFFFFF
##562F861.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#0E4384
Tritanopia (blue-blind)
#4C4256
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562f86;
/* rgb */ color: rgb(86, 47, 134);
/* oklch */ color: oklch(40.1% 0.140 300.9);
Tailwind
colors: {
  custom: {
    50: '#896aaa',
    500: '#562f86',
    950: '#000000',
  },
}
SCSS
$custom: #562f86;
$custom-light: #896aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#562f86",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 266.897,
    "s": 48.066,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40131,
    "c": 0.13999,
    "h": 300.9
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#562F86
secondary
#8DB060
accent
#D8509B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F86

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

Preview Lab → · Contrast checker → · Palette generator →

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