#562AEF#562AEF

#562AEF is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.3% C 0.264 H 280.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#562AEF
RGBrgb(86, 42, 239)
HSLhsl(253, 86%, 55%)
HSVhsv(253, 82%, 94%)
CMYKcmyk(64%, 82.4%, 0%, 6.3%)
CIE-LABlab(37.60, 67.56, -89.91)
CIE-LCHlch(37.60, 112.46, 306.92°)
OKLaboklab(49.29% 0.0497 -0.2595)
OKLCHoklch(49.29% 0.264 280.8)
XYZxyz(20.2408, 9.8648, 82.4821)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562AEF #C3EF2A
analogous
#2A61EF #562AEF #B82AEF
triadic
#562AEF #EF562A #2AEF56
tetradic
#562AEF #EF2A61 #C3EF2A #2AEFB8
square
#562AEF #EF2A61 #C3EF2A #2AEFB8
split-complementary
#562AEF #EFB82A #61EF2A
monochromatic
#2A0B94 #3A0FCC #562AEF #8363F3 #B09CF8

Accessibility & contrast

On white

7.06
#562AEF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#562AEF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562AEF
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562AEF#FFFFFF#000000##FFFFFF
##562AEF1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FF4
Deuteranopia (green-blind)
#0051EC
Tritanopia (blue-blind)
#006990
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #562aef;
/* rgb */ color: rgb(86, 42, 239);
/* oklch */ color: oklch(49.3% 0.264 280.8);
Tailwind
colors: {
  custom: {
    50: '#996cf6',
    500: '#562aef',
    950: '#000000',
  },
}
SCSS
$custom: #562aef;
$custom-light: #996cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#562aef",
  "rgb": {
    "r": 86,
    "g": 42,
    "b": 239
  },
  "hsl": {
    "h": 253.401,
    "s": 86.026,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49288,
    "c": 0.26418,
    "h": 280.8
  },
  "luminance": 0.09866
}

Semantic roles & 50–950 ramp

primary
#562AEF
secondary
#D1E491
accent
#FC2CCE
background
#FAF6FF
surface
#F4ECFF
border
#CEC7D7
text
#100717
muted
#7F7A85

Preview Lab

Preview with #562AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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