#562F7F#562F7F

#562F7F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.6% C 0.131 H 303.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#562F7F
RGBrgb(86, 47, 127)
HSLhsl(269, 46%, 34%)
HSVhsv(269, 63%, 50%)
CMYKcmyk(32.3%, 63%, 0%, 50.2%)
CIE-LABlab(28.23, 34.55, -38.72)
CIE-LCHlch(28.23, 51.89, 311.74°)
OKLaboklab(39.61% 0.0722 -0.1096)
OKLCHoklch(39.61% 0.131 303.4)
XYZxyz(8.6842, 5.5438, 20.6871)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F7F #587F2F
analogous
#2F307F #562F7F #7E2F7F
triadic
#562F7F #7F562F #2F7F56
tetradic
#562F7F #7F2F30 #587F2F #2F7F7E
square
#562F7F #7F2F30 #587F2F #2F7F7E
split-complementary
#562F7F #7F7E2F #307F2F
monochromatic
#1A0E26 #381E52 #562F7F #7440AC #9363C5

Accessibility & contrast

On white

9.96
#562F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#562F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F7F
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F7F#FFFFFF#000000##FFFFFF
##562F7F1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024282
Deuteranopia (green-blind)
#1A427D
Tritanopia (blue-blind)
#4E4052
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562f7f;
/* rgb */ color: rgb(86, 47, 127);
/* oklch */ color: oklch(39.6% 0.131 303.4);
Tailwind
colors: {
  custom: {
    50: '#896aa5',
    500: '#562f7f',
    950: '#000000',
  },
}
SCSS
$custom: #562f7f;
$custom-light: #896aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#562f7f",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 269.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39612,
    "c": 0.13129,
    "h": 303.4
  },
  "luminance": 0.05544
}

Semantic roles & 50–950 ramp

primary
#562F7F
secondary
#86AC5E
accent
#D65296
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #562F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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