#786ED4#786ED4

#786ED4 is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.5% C 0.151 H 285.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#786ED4
RGBrgb(120, 110, 212)
HSLhsl(246, 54%, 63%)
HSVhsv(246, 48%, 83%)
CMYKcmyk(43.4%, 48.1%, 0%, 16.9%)
CIE-LABlab(51.72, 29.32, -51.46)
CIE-LCHlch(51.72, 59.22, 299.67°)
OKLaboklab(59.55% 0.0399 -0.1459)
OKLCHoklch(59.55% 0.151 285.3)
XYZxyz(25.2019, 19.8974, 64.7873)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786ED4 #CAD46E
analogous
#6E97D4 #786ED4 #AB6ED4
triadic
#786ED4 #D4786E #6ED478
tetradic
#786ED4 #D46E97 #CAD46E #6ED4AB
square
#786ED4 #D46E97 #CAD46E #6ED4AB
split-complementary
#786ED4 #D4AB6E #97D46E
monochromatic
#382E9A #4C3FC6 #786ED4 #A49DE2 #D0CCF0

Accessibility & contrast

On white

4.22
#786ED4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#786ED4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786ED4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786ED4#FFFFFF#000000##000000
##786ED41.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#447ED8
Deuteranopia (green-blind)
#4178D2
Tritanopia (blue-blind)
#5C8397
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786ed4;
/* rgb */ color: rgb(120, 110, 212);
/* oklch */ color: oklch(59.5% 0.151 285.3);
Tailwind
colors: {
  custom: {
    50: '#a497e2',
    500: '#786ed4',
    950: '#000000',
  },
}
SCSS
$custom: #786ed4;
$custom-light: #a497e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786ed4",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 212
  },
  "hsl": {
    "h": 245.882,
    "s": 54.255,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59549,
    "c": 0.1513,
    "h": 285.3
  },
  "luminance": 0.19898
}

Semantic roles & 50–950 ramp

primary
#786ED4
secondary
#DEE1BD
accent
#C224B2
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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