#562E8F#562E8F

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

Color values

HEX#562E8F
RGBrgb(86, 46, 143)
HSLhsl(265, 51%, 37%)
HSVhsv(265, 68%, 56%)
CMYKcmyk(39.9%, 67.8%, 0%, 43.9%)
CIE-LABlab(29.20, 39.41, -47.11)
CIE-LCHlch(29.20, 61.42, 309.91°)
OKLaboklab(40.68% 0.0721 -0.1343)
OKLCHoklch(40.68% 0.152 298.2)
XYZxyz(9.7714, 5.9155, 26.6083)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E8F #678F2E
analogous
#2E378F #562E8F #872E8F
triadic
#562E8F #8F562E #2E8F56
tetradic
#562E8F #8F2E37 #678F2E #2E8F87
square
#562E8F #8F2E37 #678F2E #2E8F87
split-complementary
#562E8F #8F872E #378F2E
monochromatic
#1E1032 #3A1F61 #562E8F #723DBD #9369CF

Accessibility & contrast

On white

9.62
#562E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#562E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E8F
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E8F#FFFFFF#000000##FFFFFF
##562E8F1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#48455A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562e8f;
/* rgb */ color: rgb(86, 46, 143);
/* oklch */ color: oklch(40.7% 0.152 298.2);
Tailwind
colors: {
  custom: {
    50: '#8a69b0',
    500: '#562e8f',
    950: '#000000',
  },
}
SCSS
$custom: #562e8f;
$custom-light: #8a69b0;
$custom-dark: #000000;
JSON
{
  "hex": "#562e8f",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 264.742,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40684,
    "c": 0.15245,
    "h": 298.2
  },
  "luminance": 0.05916
}

Semantic roles & 50–950 ramp

primary
#562E8F
secondary
#94B663
accent
#DB4DA0
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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