#786EEB#786EEB

#786EEB is a mid, vivid blue. Relative luminance 0.211; OKLCH L 61.0% C 0.182 H 283.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#786EEB
RGBrgb(120, 110, 235)
HSLhsl(245, 76%, 68%)
HSVhsv(245, 53%, 92%)
CMYKcmyk(48.9%, 53.2%, 0%, 7.8%)
CIE-LABlab(53.10, 36.06, -62.20)
CIE-LCHlch(53.10, 71.90, 300.10°)
OKLaboklab(61.03% 0.0416 -0.1775)
OKLCHoklch(61.03% 0.182 283.2)
XYZxyz(28.3125, 21.1416, 81.1701)
Luminance0.2114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EEB #E1EB6E
analogous
#6EA2EB #786EEB #B66EEB
triadic
#786EEB #EB786E #6EEB78
tetradic
#786EEB #EB6EA2 #E1EB6E #6EEBB6
square
#786EEB #EB6EA2 #E1EB6E #6EEBB6
split-complementary
#786EEB #EBB66E #A2EB6E
monochromatic
#281BC4 #4638E4 #786EEB #AAA4F2 #DCDAFA

Accessibility & contrast

On white

4.02
#786EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#786EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EEB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EEB#FFFFFF#000000##000000
##786EEB1.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2983EF
Deuteranopia (green-blind)
#1F7BE8
Tritanopia (blue-blind)
#4E8AA2
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786eeb;
/* rgb */ color: rgb(120, 110, 235);
/* oklch */ color: oklch(61.0% 0.182 283.2);
Tailwind
colors: {
  custom: {
    50: '#a698f2',
    500: '#786eeb',
    950: '#000000',
  },
}
SCSS
$custom: #786eeb;
$custom-light: #a698f2;
$custom-dark: #000000;
JSON
{
  "hex": "#786eeb",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 235
  },
  "hsl": {
    "h": 244.8,
    "s": 75.758,
    "l": 67.647
  },
  "oklch": {
    "l": 0.6103,
    "c": 0.18231,
    "h": 283.2
  },
  "luminance": 0.21143
}

Semantic roles & 50–950 ramp

primary
#786EEB
secondary
#EBEEC7
accent
#D80EC8
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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