#562894#562894

#562894 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.166 H 297.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#562894
RGBrgb(86, 40, 148)
HSLhsl(266, 57%, 37%)
HSVhsv(266, 73%, 58%)
CMYKcmyk(41.9%, 73%, 0%, 42%)
CIE-LABlab(28.47, 43.89, -51.38)
CIE-LCHlch(28.47, 67.57, 310.51°)
OKLaboklab(40.29% 0.0778 -0.1468)
OKLCHoklch(40.29% 0.166 297.9)
XYZxyz(9.9405, 5.6340, 28.5750)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562894 #669428
analogous
#283094 #562894 #8C2894
triadic
#562894 #945628 #289456
tetradic
#562894 #942830 #669428 #28948C
square
#562894 #942830 #669428 #28948C
split-complementary
#562894 #948C28 #309428
monochromatic
#1E0E34 #3A1B64 #562894 #7235C4 #9362D5

Accessibility & contrast

On white

9.87
#562894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#562894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562894
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562894#FFFFFF#000000##FFFFFF
##5628941.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#47435B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #562894;
/* rgb */ color: rgb(86, 40, 148);
/* oklch */ color: oklch(40.3% 0.166 297.9);
Tailwind
colors: {
  custom: {
    50: '#8b66b4',
    500: '#562894',
    950: '#000000',
  },
}
SCSS
$custom: #562894;
$custom-light: #8b66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#562894",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 265.556,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40289,
    "c": 0.16613,
    "h": 297.9
  },
  "luminance": 0.05634
}

Semantic roles & 50–950 ramp

primary
#562894
secondary
#93BA5E
accent
#E1479F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #562894

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

Preview Lab → · Contrast checker → · Palette generator →

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