#562BE2#562BE2

#562BE2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.0% C 0.250 H 282.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#562BE2
RGBrgb(86, 43, 226)
HSLhsl(254, 76%, 53%)
HSVhsv(254, 81%, 89%)
CMYKcmyk(61.9%, 81%, 0%, 11.4%)
CIE-LABlab(36.36, 63.69, -84.56)
CIE-LCHlch(36.36, 105.87, 306.99°)
OKLaboklab(48.03% 0.0535 -0.2439)
OKLCHoklch(48.03% 0.25 282.4)
XYZxyz(18.4248, 9.1958, 72.7408)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#562BE2 #B7E22B
analogous
#2B5CE2 #562BE2 #B12BE2
triadic
#562BE2 #E2562B #2BE256
tetradic
#562BE2 #E22B5C #B7E22B #2BE2B1
square
#562BE2 #E22B5C #B7E22B #2BE2B1
split-complementary
#562BE2 #E2B12B #5CE22B
monochromatic
#2C1281 #3E19B7 #562BE2 #8161E9 #AC97F1

Accessibility & contrast

On white

7.40
#562BE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#562BE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #562BE2
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##562BE2#FFFFFF#000000##FFFFFF
##562BE21.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE7
Deuteranopia (green-blind)
#004FDF
Tritanopia (blue-blind)
#006489
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #562be2;
/* rgb */ color: rgb(86, 43, 226);
/* oklch */ color: oklch(48.0% 0.250 282.4);
Tailwind
colors: {
  custom: {
    50: '#976ced',
    500: '#562be2',
    950: '#000000',
  },
}
SCSS
$custom: #562be2;
$custom-light: #976ced;
$custom-dark: #000000;
JSON
{
  "hex": "#562be2",
  "rgb": {
    "r": 86,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 254.098,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48033,
    "c": 0.24972,
    "h": 282.4
  },
  "luminance": 0.09197
}

Semantic roles & 50–950 ramp

primary
#562BE2
secondary
#C9DC8D
accent
#F335C6
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #562BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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