#562AC7#562AC7

#562AC7 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.221 H 286.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#562AC7
RGBrgb(86, 42, 199)
HSLhsl(257, 65%, 47%)
HSVhsv(257, 79%, 78%)
CMYKcmyk(56.8%, 78.9%, 0%, 22%)
CIE-LABlab(33.47, 56.79, -73.72)
CIE-LCHlch(33.47, 93.06, 307.61°)
OKLaboklab(45.22% 0.0625 -0.2123)
OKLCHoklch(45.22% 0.221 286.4)
XYZxyz(14.9714, 7.7570, 54.7301)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AC7 #9BC72A
analogous
#2A4DC7 #562AC7 #A42AC7
triadic
#562AC7 #C7562A #2AC756
tetradic
#562AC7 #C72A4D #9BC72A #2AC7A4
square
#562AC7 #C72A4D #9BC72A #2AC7A4
split-complementary
#562AC7 #C7A42A #4DC72A
monochromatic
#2A1562 #401F94 #562AC7 #7953DB #A186E5

Accessibility & contrast

On white

8.23
#562AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#562AC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AC7
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AC7#FFFFFF#000000##FFFFFF
##562AC71.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#004AC4
Tritanopia (blue-blind)
#1E5879
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #562ac7;
/* rgb */ color: rgb(86, 42, 199);
/* oklch */ color: oklch(45.2% 0.221 286.4);
Tailwind
colors: {
  custom: {
    50: '#926ad9',
    500: '#562ac7',
    950: '#000000',
  },
}
SCSS
$custom: #562ac7;
$custom-light: #926ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#562ac7",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 256.815,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45222,
    "c": 0.22132,
    "h": 286.4
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#562AC7
secondary
#B8CF7E
accent
#E840B9
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #562AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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