#786CF1#786CF1

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

Color values

HEX#786CF1
RGBrgb(120, 108, 241)
HSLhsl(245, 83%, 68%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50.2%, 55.2%, 0%, 5.5%)
CIE-LABlab(53.02, 39.02, -65.68)
CIE-LCHlch(53.02, 76.40, 300.71°)
OKLaboklab(61.09% 0.0439 -0.1877)
OKLCHoklch(61.09% 0.193 283.2)
XYZxyz(28.9807, 21.0675, 85.7414)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CF1 #E5F16C
analogous
#6CA2F1 #786CF1 #BB6CF1
triadic
#786CF1 #F1786C #6CF178
tetradic
#786CF1 #F16CA2 #E5F16C #6CF1BB
square
#786CF1 #F16CA2 #E5F16C #6CF1BB
split-complementary
#786CF1 #F1BB6C #A2F16C
monochromatic
#2514CF #4534EC #786CF1 #ABA4F6 #DFDCFC

Accessibility & contrast

On white

4.03
#786CF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#786CF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786CF1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CF1#FFFFFF#000000##000000
##786CF11.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1283F6
Deuteranopia (green-blind)
#007AEE
Tritanopia (blue-blind)
#498AA4
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786cf1;
/* rgb */ color: rgb(120, 108, 241);
/* oklch */ color: oklch(61.1% 0.193 283.2);
Tailwind
colors: {
  custom: {
    50: '#a796f6',
    500: '#786cf1',
    950: '#000000',
  },
}
SCSS
$custom: #786cf1;
$custom-light: #a796f6;
$custom-dark: #000000;
JSON
{
  "hex": "#786cf1",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 241
  },
  "hsl": {
    "h": 245.414,
    "s": 82.609,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61092,
    "c": 0.19282,
    "h": 283.2
  },
  "luminance": 0.21069
}

Semantic roles & 50–950 ramp

primary
#786CF1
secondary
#EDF0C8
accent
#DF06CB
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786CF1

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

Preview Lab → · Contrast checker → · Palette generator →

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