#786ED2#786ED2

#786ED2 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.149 H 285.5°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#786ED2
RGBrgb(120, 110, 210)
HSLhsl(246, 53%, 63%)
HSVhsv(246, 48%, 82%)
CMYKcmyk(42.9%, 47.6%, 0%, 17.6%)
CIE-LABlab(51.61, 28.74, -50.50)
CIE-LCHlch(51.61, 58.11, 299.64°)
OKLaboklab(59.43% 0.0397 -0.1431)
OKLCHoklch(59.43% 0.149 285.5)
XYZxyz(24.9512, 19.7971, 63.4668)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ED2 #C8D26E
analogous
#6E96D2 #786ED2 #AA6ED2
triadic
#786ED2 #D2786E #6ED278
tetradic
#786ED2 #D26E96 #C8D26E #6ED2AA
square
#786ED2 #D26E96 #C8D26E #6ED2AA
split-complementary
#786ED2 #D2AA6E #96D26E
monochromatic
#392F97 #4D3FC4 #786ED2 #A39DE0 #CFCBEF

Accessibility & contrast

On white

4.23
#786ED2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#786ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ED2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ED2#FFFFFF#000000##000000
##786ED21.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ED6
Deuteranopia (green-blind)
#4378D0
Tritanopia (blue-blind)
#5D8396
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ed2;
/* rgb */ color: rgb(120, 110, 210);
/* oklch */ color: oklch(59.4% 0.149 285.5);
Tailwind
colors: {
  custom: {
    50: '#a397e0',
    500: '#786ed2',
    950: '#000000',
  },
}
SCSS
$custom: #786ed2;
$custom-light: #a397e0;
$custom-dark: #000000;
JSON
{
  "hex": "#786ed2",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 210
  },
  "hsl": {
    "h": 246,
    "s": 52.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59426,
    "c": 0.14854,
    "h": 285.5
  },
  "luminance": 0.19798
}

Semantic roles & 50–950 ramp

primary
#786ED2
secondary
#DCE0BC
accent
#C025B1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786ED2

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

Preview Lab → · Contrast checker → · Palette generator →

#786ED2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva