#786BEE#786BEE

#786BEE is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.7% C 0.190 H 283.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786BEE
RGBrgb(120, 107, 238)
HSLhsl(246, 79%, 68%)
HSVhsv(246, 55%, 93%)
CMYKcmyk(49.6%, 55%, 0%, 6.7%)
CIE-LABlab(52.60, 38.71, -64.70)
CIE-LCHlch(52.60, 75.39, 300.90°)
OKLaboklab(60.71% 0.0449 -0.1848)
OKLCHoklch(60.71% 0.19 283.7)
XYZxyz(28.4314, 20.6800, 83.3659)
Luminance0.2068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BEE #E1EE6B
analogous
#6BA0EE #786BEE #B96BEE
triadic
#786BEE #EE786B #6BEE78
tetradic
#786BEE #EE6BA0 #E1EE6B #6BEEB9
square
#786BEE #EE6BA0 #E1EE6B #6BEEB9
split-complementary
#786BEE #EEB96B #A0EE6B
monochromatic
#2817C8 #4634E8 #786BEE #AAA2F4 #DCD9FB

Accessibility & contrast

On white

4.09
#786BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#786BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BEE
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BEE#FFFFFF#000000##000000
##786BEE1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1682F2
Deuteranopia (green-blind)
#0279EB
Tritanopia (blue-blind)
#4C89A2
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786bee;
/* rgb */ color: rgb(120, 107, 238);
/* oklch */ color: oklch(60.7% 0.190 283.7);
Tailwind
colors: {
  custom: {
    50: '#a796f4',
    500: '#786bee',
    950: '#000000',
  },
}
SCSS
$custom: #786bee;
$custom-light: #a796f4;
$custom-dark: #000000;
JSON
{
  "hex": "#786bee",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 238
  },
  "hsl": {
    "h": 245.954,
    "s": 79.394,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60714,
    "c": 0.19023,
    "h": 283.7
  },
  "luminance": 0.20682
}

Semantic roles & 50–950 ramp

primary
#786BEE
secondary
#EBEFC6
accent
#DC0AC7
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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