#562896#562896

#562896 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.168 H 297.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#562896
RGBrgb(86, 40, 150)
HSLhsl(265, 58%, 37%)
HSVhsv(265, 73%, 59%)
CMYKcmyk(42.7%, 73.3%, 0%, 41.2%)
CIE-LABlab(28.64, 44.43, -52.33)
CIE-LCHlch(28.64, 68.65, 310.33°)
OKLaboklab(40.46% 0.0773 -0.1496)
OKLCHoklch(40.46% 0.168 297.3)
XYZxyz(10.1001, 5.6978, 29.4159)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562896 #689628
analogous
#283196 #562896 #8D2896
triadic
#562896 #965628 #289656
tetradic
#562896 #962831 #689628 #28968D
square
#562896 #962831 #689628 #28968D
split-complementary
#562896 #968D28 #319628
monochromatic
#1F0E35 #3A1B66 #562896 #7235C6 #9363D5

Accessibility & contrast

On white

9.81
#562896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#562896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562896
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562896#FFFFFF#000000##FFFFFF
##5628961.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004499
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#46445C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #562896;
/* rgb */ color: rgb(86, 40, 150);
/* oklch */ color: oklch(40.5% 0.168 297.3);
Tailwind
colors: {
  custom: {
    50: '#8c66b6',
    500: '#562896',
    950: '#000000',
  },
}
SCSS
$custom: #562896;
$custom-light: #8c66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#562896",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 265.091,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4046,
    "c": 0.16842,
    "h": 297.3
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#562896
secondary
#94BB5F
accent
#E147A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562896

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

Preview Lab → · Contrast checker → · Palette generator →

#562896 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva