#562FA8#562FA8

#562FA8 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.181 H 291.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#562FA8
RGBrgb(86, 47, 168)
HSLhsl(259, 56%, 42%)
HSVhsv(259, 72%, 66%)
CMYKcmyk(48.8%, 72%, 0%, 34.1%)
CIE-LABlab(31.44, 45.81, -58.69)
CIE-LCHlch(31.44, 74.45, 307.97°)
OKLaboklab(42.92% 0.0668 -0.1683)
OKLCHoklch(42.92% 0.181 291.7)
XYZxyz(11.9202, 6.8382, 37.7300)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FA8 #81A82F
analogous
#2F44A8 #562FA8 #932FA8
triadic
#562FA8 #A8562F #2FA856
tetradic
#562FA8 #A82F44 #81A82F #2FA893
square
#562FA8 #A82F44 #81A82F #2FA893
split-complementary
#562FA8 #A8932F #44A82F
monochromatic
#251448 #3E2278 #562FA8 #7348CC #9778D9

Accessibility & contrast

On white

8.87
#562FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#562FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FA8
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FA8#FFFFFF#000000##FFFFFF
##562FA81.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#3C4E68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #562fa8;
/* rgb */ color: rgb(86, 47, 168);
/* oklch */ color: oklch(42.9% 0.181 291.7);
Tailwind
colors: {
  custom: {
    50: '#8d6bc3',
    500: '#562fa8',
    950: '#000000',
  },
}
SCSS
$custom: #562fa8;
$custom-light: #8d6bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#562fa8",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 259.339,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4292,
    "c": 0.18111,
    "h": 291.7
  },
  "luminance": 0.06839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #562FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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