#562EB1#562EB1

#562EB1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.193 H 289.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#562EB1
RGBrgb(86, 46, 177)
HSLhsl(258, 59%, 44%)
HSVhsv(258, 74%, 69%)
CMYKcmyk(51.4%, 74%, 0%, 30.6%)
CIE-LABlab(32.05, 48.84, -63.08)
CIE-LCHlch(32.05, 79.78, 307.75°)
OKLaboklab(43.6% 0.0657 -0.1812)
OKLCHoklch(43.6% 0.193 289.9)
XYZxyz(12.7483, 7.1062, 42.2864)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562EB1 #89B12E
analogous
#2E47B1 #562EB1 #972EB1
triadic
#562EB1 #B1562E #2EB156
tetradic
#562EB1 #B12E47 #89B12E #2EB197
square
#562EB1 #B12E47 #89B12E #2EB197
split-complementary
#562EB1 #B1972E #47B12E
monochromatic
#271550 #3E2180 #562EB1 #744CD0 #9A7CDD

Accessibility & contrast

On white

8.67
#562EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#562EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562EB1
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562EB1#FFFFFF#000000##FFFFFF
##562EB11.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0048AF
Tritanopia (blue-blind)
#35516D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #562eb1;
/* rgb */ color: rgb(86, 46, 177);
/* oklch */ color: oklch(43.6% 0.193 289.9);
Tailwind
colors: {
  custom: {
    50: '#8f6bc9',
    500: '#562eb1',
    950: '#000000',
  },
}
SCSS
$custom: #562eb1;
$custom-light: #8f6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#562eb1",
  "rgb": {
    "r": 86,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 258.321,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43597,
    "c": 0.19274,
    "h": 289.9
  },
  "luminance": 0.07107
}

Semantic roles & 50–950 ramp

primary
#562EB1
secondary
#ADC675
accent
#E246B2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #562EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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