#786BF2#786BF2

#786BF2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 61.0% C 0.195 H 283.3°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#786BF2
RGBrgb(120, 107, 242)
HSLhsl(246, 84%, 68%)
HSVhsv(246, 56%, 95%)
CMYKcmyk(50.4%, 55.8%, 0%, 5.1%)
CIE-LABlab(52.86, 39.90, -66.51)
CIE-LCHlch(52.86, 77.56, 300.96°)
OKLaboklab(60.99% 0.045 -0.1902)
OKLCHoklch(60.99% 0.195 283.3)
XYZxyz(29.0256, 20.9177, 86.4953)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF2 #E5F26B
analogous
#6BA1F2 #786BF2 #BB6BF2
triadic
#786BF2 #F2786B #6BF278
tetradic
#786BF2 #F26BA1 #E5F26B #6BF2BB
square
#786BF2 #F26BA1 #E5F26B #6BF2BB
split-complementary
#786BF2 #F2BB6B #A1F26B
monochromatic
#2512D0 #4533ED #786BF2 #ABA3F7 #DFDCFC

Accessibility & contrast

On white

4.05
#786BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#786BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BF2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BF2#FFFFFF#000000##000000
##786BF21.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0583F7
Deuteranopia (green-blind)
#007AEF
Tritanopia (blue-blind)
#498AA4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786bf2;
/* rgb */ color: rgb(120, 107, 242);
/* oklch */ color: oklch(61.0% 0.195 283.3);
Tailwind
colors: {
  custom: {
    50: '#a796f7',
    500: '#786bf2',
    950: '#000000',
  },
}
SCSS
$custom: #786bf2;
$custom-light: #a796f7;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf2",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 242
  },
  "hsl": {
    "h": 245.778,
    "s": 83.851,
    "l": 68.431
  },
  "oklch": {
    "l": 0.60992,
    "c": 0.19542,
    "h": 283.3
  },
  "luminance": 0.20919
}

Semantic roles & 50–950 ramp

primary
#786BF2
secondary
#EDF1C8
accent
#E005CB
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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