#786BEF#786BEF

#786BEF is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.8% C 0.192 H 283.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#786BEF
RGBrgb(120, 107, 239)
HSLhsl(246, 80%, 68%)
HSVhsv(246, 55%, 94%)
CMYKcmyk(49.8%, 55.2%, 0%, 6.3%)
CIE-LABlab(52.66, 39.01, -65.15)
CIE-LCHlch(52.66, 75.94, 300.91°)
OKLaboklab(60.78% 0.0449 -0.1862)
OKLCHoklch(60.78% 0.192 283.6)
XYZxyz(28.5787, 20.7390, 84.1418)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BEF #E2EF6B
analogous
#6BA0EF #786BEF #BA6BEF
triadic
#786BEF #EF786B #6BEF78
tetradic
#786BEF #EF6BA0 #E2EF6B #6BEFBA
square
#786BEF #EF6BA0 #E2EF6B #6BEFBA
split-complementary
#786BEF #EFBA6B #A0EF6B
monochromatic
#2816CA #4634E9 #786BEF #AAA2F5 #DDD9FB

Accessibility & contrast

On white

4.08
#786BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#786BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BEF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BEF#FFFFFF#000000##000000
##786BEF1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1382F3
Deuteranopia (green-blind)
#0079EC
Tritanopia (blue-blind)
#4B89A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786bef;
/* rgb */ color: rgb(120, 107, 239);
/* oklch */ color: oklch(60.8% 0.192 283.6);
Tailwind
colors: {
  custom: {
    50: '#a796f5',
    500: '#786bef',
    950: '#000000',
  },
}
SCSS
$custom: #786bef;
$custom-light: #a796f5;
$custom-dark: #000000;
JSON
{
  "hex": "#786bef",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 239
  },
  "hsl": {
    "h": 245.909,
    "s": 80.488,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60783,
    "c": 0.19153,
    "h": 283.6
  },
  "luminance": 0.2074
}

Semantic roles & 50–950 ramp

primary
#786BEF
secondary
#EBEFC7
accent
#DD09C8
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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