#562E8B#562E8B

#562E8B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.148 H 299.5°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#562E8B
RGBrgb(86, 46, 139)
HSLhsl(266, 50%, 36%)
HSVhsv(266, 67%, 55%)
CMYKcmyk(38.1%, 66.9%, 0%, 45.5%)
CIE-LABlab(28.89, 38.32, -45.13)
CIE-LCHlch(28.89, 59.21, 310.34°)
OKLaboklab(40.37% 0.0726 -0.1285)
OKLCHoklch(40.37% 0.148 299.5)
XYZxyz(9.4738, 5.7964, 25.0408)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562E8B #638B2E
analogous
#2E358B #562E8B #852E8B
triadic
#562E8B #8B562E #2E8B56
tetradic
#562E8B #8B2E35 #638B2E #2E8B85
square
#562E8B #8B2E35 #638B2E #2E8B85
split-complementary
#562E8B #8B852E #358B2E
monochromatic
#1D102F #3A1F5D #562E8B #723DB9 #9367CD

Accessibility & contrast

On white

9.72
#562E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#562E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562E8B
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562E8B#FFFFFF#000000##FFFFFF
##562E8B1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#4A4358
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562e8b;
/* rgb */ color: rgb(86, 46, 139);
/* oklch */ color: oklch(40.4% 0.148 299.5);
Tailwind
colors: {
  custom: {
    50: '#8a69ae',
    500: '#562e8b',
    950: '#000000',
  },
}
SCSS
$custom: #562e8b;
$custom-light: #8a69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#562e8b",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 265.806,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40368,
    "c": 0.14759,
    "h": 299.5
  },
  "luminance": 0.05797
}

Semantic roles & 50–950 ramp

primary
#562E8B
secondary
#90B361
accent
#DA4E9E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #562E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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