#562284#562284

#562284 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.155 H 304.1°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#562284
RGBrgb(86, 34, 132)
HSLhsl(272, 59%, 33%)
HSVhsv(272, 74%, 52%)
CMYKcmyk(34.8%, 74.2%, 0%, 48.2%)
CIE-LABlab(26.12, 42.67, -45.26)
CIE-LCHlch(26.12, 62.21, 313.32°)
OKLaboklab(38.22% 0.0871 -0.1288)
OKLCHoklch(38.22% 0.155 304.1)
XYZxyz(8.5737, 4.7885, 22.2979)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562284 #508422
analogous
#252284 #562284 #842281
triadic
#562284 #845622 #228456
tetradic
#562284 #842522 #508422 #228184
square
#562284 #842522 #508422 #228184
split-complementary
#562284 #818422 #228425
monochromatic
#170923 #361553 #562284 #762FB5 #944FD2

Accessibility & contrast

On white

10.73
#562284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#562284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562284
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562284#FFFFFF#000000##FFFFFF
##5622841.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#4D3A51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #562284;
/* rgb */ color: rgb(86, 34, 132);
/* oklch */ color: oklch(38.2% 0.155 304.1);
Tailwind
colors: {
  custom: {
    50: '#8a62a8',
    500: '#562284',
    950: '#000000',
  },
}
SCSS
$custom: #562284;
$custom-light: #8a62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#562284",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 271.837,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.15549,
    "h": 304.1
  },
  "luminance": 0.04788
}

Semantic roles & 50–950 ramp

primary
#562284
secondary
#7EB54D
accent
#E2468F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #562284

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

Preview Lab → · Contrast checker → · Palette generator →

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