#562F8D#562F8D

#562F8D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.149 H 298.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#562F8D
RGBrgb(86, 47, 141)
HSLhsl(265, 50%, 37%)
HSVhsv(265, 67%, 55%)
CMYKcmyk(39%, 66.7%, 0%, 44.7%)
CIE-LABlab(29.25, 38.32, -45.80)
CIE-LCHlch(29.25, 59.71, 309.92°)
OKLaboklab(40.67% 0.0712 -0.1304)
OKLCHoklch(40.67% 0.149 298.6)
XYZxyz(9.6608, 5.9344, 25.8306)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562F8D #668D2F
analogous
#2F378D #562F8D #852F8D
triadic
#562F8D #8D562F #2F8D56
tetradic
#562F8D #8D2F37 #668D2F #2F8D85
square
#562F8D #8D2F37 #668D2F #2F8D85
split-complementary
#562F8D #8D852F #378D2F
monochromatic
#1E1031 #3A205F #562F8D #723EBB #9369CD

Accessibility & contrast

On white

9.60
#562F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#562F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562F8D
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562F8D#FFFFFF#000000##FFFFFF
##562F8D1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#494459
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562f8d;
/* rgb */ color: rgb(86, 47, 141);
/* oklch */ color: oklch(40.7% 0.149 298.6);
Tailwind
colors: {
  custom: {
    50: '#8a6aaf',
    500: '#562f8d',
    950: '#000000',
  },
}
SCSS
$custom: #562f8d;
$custom-light: #8a6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#562f8d",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 264.894,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4067,
    "c": 0.14863,
    "h": 298.6
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#562F8D
secondary
#93B464
accent
#DA4EA0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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