#562FA9#562FA9

#562FA9 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.182 H 291.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#562FA9
RGBrgb(86, 47, 169)
HSLhsl(259, 56%, 42%)
HSVhsv(259, 72%, 66%)
CMYKcmyk(49.1%, 72.2%, 0%, 33.7%)
CIE-LABlab(31.52, 46.09, -59.15)
CIE-LCHlch(31.52, 74.99, 307.93°)
OKLaboklab(43.01% 0.0666 -0.1697)
OKLCHoklch(43.01% 0.182 291.4)
XYZxyz(12.0137, 6.8756, 38.2225)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FA9 #82A92F
analogous
#2F45A9 #562FA9 #932FA9
triadic
#562FA9 #A9562F #2FA956
tetradic
#562FA9 #A92F45 #82A92F #2FA993
square
#562FA9 #A92F45 #82A92F #2FA993
split-complementary
#562FA9 #A9932F #45A92F
monochromatic
#251449 #3E2279 #562FA9 #7349CC #9879DA

Accessibility & contrast

On white

8.84
#562FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#562FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FA9
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FA9#FFFFFF#000000##FFFFFF
##562FA91.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#0048A7
Tritanopia (blue-blind)
#3B4F69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562fa9;
/* rgb */ color: rgb(86, 47, 169);
/* oklch */ color: oklch(43.0% 0.182 291.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bc4',
    500: '#562fa9',
    950: '#000000',
  },
}
SCSS
$custom: #562fa9;
$custom-light: #8e6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#562fa9",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 259.18,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43008,
    "c": 0.18229,
    "h": 291.4
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#562FA9
secondary
#A8C272
accent
#E048AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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