#562B8F#562B8F

#562B8F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.157 H 298.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#562B8F
RGBrgb(86, 43, 143)
HSLhsl(266, 54%, 36%)
HSVhsv(266, 70%, 56%)
CMYKcmyk(39.9%, 69.9%, 0%, 43.9%)
CIE-LABlab(28.61, 41.02, -48.06)
CIE-LCHlch(28.61, 63.18, 310.48°)
OKLaboklab(40.27% 0.0755 -0.1371)
OKLCHoklch(40.27% 0.157 298.8)
XYZxyz(9.6583, 5.6892, 26.5706)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562B8F #648F2B
analogous
#2B328F #562B8F #882B8F
triadic
#562B8F #8F562B #2B8F56
tetradic
#562B8F #8F2B32 #648F2B #2B8F88
square
#562B8F #8F2B32 #648F2B #2B8F88
split-complementary
#562B8F #8F882B #328F2B
monochromatic
#1D0F31 #3A1D60 #562B8F #7239BE #9364D0

Accessibility & contrast

On white

9.82
#562B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#562B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562B8F
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562B8F#FFFFFF#000000##FFFFFF
##562B8F1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#494359
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562b8f;
/* rgb */ color: rgb(86, 43, 143);
/* oklch */ color: oklch(40.3% 0.157 298.8);
Tailwind
colors: {
  custom: {
    50: '#8b68b1',
    500: '#562b8f',
    950: '#000000',
  },
}
SCSS
$custom: #562b8f;
$custom-light: #8b68b1;
$custom-dark: #000000;
JSON
{
  "hex": "#562b8f",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 265.8,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40265,
    "c": 0.1565,
    "h": 298.8
  },
  "luminance": 0.05689
}

Semantic roles & 50–950 ramp

primary
#562B8F
secondary
#91B75F
accent
#DD4B9E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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