#562FB5#562FB5

#562FB5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.196 H 289.0°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#562FB5
RGBrgb(86, 47, 181)
HSLhsl(257, 59%, 45%)
HSVhsv(257, 74%, 71%)
CMYKcmyk(52.5%, 74%, 0%, 29%)
CIE-LABlab(32.58, 49.46, -64.58)
CIE-LCHlch(32.58, 81.35, 307.45°)
OKLaboklab(44.09% 0.0639 -0.1856)
OKLCHoklch(44.09% 0.196 289)
XYZxyz(13.1923, 7.3470, 44.4301)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562FB5 #8EB52F
analogous
#2F4BB5 #562FB5 #992FB5
triadic
#562FB5 #B5562F #2FB556
tetradic
#562FB5 #B52F4B #8EB52F #2FB599
square
#562FB5 #B52F4B #8EB52F #2FB599
split-complementary
#562FB5 #B5992F #4BB52F
monochromatic
#281654 #3F2284 #562FB5 #7550D1 #9C80DE

Accessibility & contrast

On white

8.50
#562FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#562FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562FB5
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562FB5#FFFFFF#000000##FFFFFF
##562FB51.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#325370
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #562fb5;
/* rgb */ color: rgb(86, 47, 181);
/* oklch */ color: oklch(44.1% 0.196 289.0);
Tailwind
colors: {
  custom: {
    50: '#8f6ccc',
    500: '#562fb5',
    950: '#000000',
  },
}
SCSS
$custom: #562fb5;
$custom-light: #8f6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#562fb5",
  "rgb": {
    "r": 86,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 257.463,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44086,
    "c": 0.19629,
    "h": 289
  },
  "luminance": 0.07348
}

Semantic roles & 50–950 ramp

primary
#562FB5
secondary
#B0C779
accent
#E246B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #562FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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