#562D94#562D94

#562D94 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.160 H 297.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#562D94
RGBrgb(86, 45, 148)
HSLhsl(264, 53%, 38%)
HSVhsv(264, 70%, 58%)
CMYKcmyk(41.9%, 69.6%, 0%, 42%)
CIE-LABlab(29.39, 41.31, -49.87)
CIE-LCHlch(29.39, 64.76, 309.64°)
OKLaboklab(40.95% 0.0725 -0.1424)
OKLCHoklch(40.95% 0.16 297)
XYZxyz(10.1200, 5.9931, 28.6348)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562D94 #6B942D
analogous
#2D3894 #562D94 #892D94
triadic
#562D94 #94562D #2D9456
tetradic
#562D94 #942D38 #6B942D #2D9489
square
#562D94 #942D38 #6B942D #2D9489
split-complementary
#562D94 #94892D #38942D
monochromatic
#1F1036 #3B1F65 #562D94 #713BC3 #936AD2

Accessibility & contrast

On white

9.55
#562D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#562D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562D94
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562D94#FFFFFF#000000##FFFFFF
##562D941.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#46465D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #562d94;
/* rgb */ color: rgb(86, 45, 148);
/* oklch */ color: oklch(40.9% 0.160 297.0);
Tailwind
colors: {
  custom: {
    50: '#8b69b4',
    500: '#562d94',
    950: '#000000',
  },
}
SCSS
$custom: #562d94;
$custom-light: #8b69b4;
$custom-dark: #000000;
JSON
{
  "hex": "#562d94",
  "rgb": {
    "r": 86,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 263.883,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40948,
    "c": 0.15982,
    "h": 297
  },
  "luminance": 0.05993
}

Semantic roles & 50–950 ramp

primary
#562D94
secondary
#97B864
accent
#DD4BA3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #562D94

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

Preview Lab → · Contrast checker → · Palette generator →

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