#786BF1#786BF1

#786BF1 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.9% C 0.194 H 283.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#786BF1
RGBrgb(120, 107, 241)
HSLhsl(246, 83%, 68%)
HSVhsv(246, 56%, 95%)
CMYKcmyk(50.2%, 55.6%, 0%, 5.5%)
CIE-LABlab(52.79, 39.60, -66.05)
CIE-LCHlch(52.79, 77.02, 300.94°)
OKLaboklab(60.92% 0.045 -0.1888)
OKLCHoklch(60.92% 0.194 283.4)
XYZxyz(28.8758, 20.8578, 85.7065)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BF1 #E4F16B
analogous
#6BA1F1 #786BF1 #BB6BF1
triadic
#786BF1 #F1786B #6BF178
tetradic
#786BF1 #F16BA1 #E4F16B #6BF1BB
square
#786BF1 #F16BA1 #E4F16B #6BF1BB
split-complementary
#786BF1 #F1BB6B #A1F16B
monochromatic
#2613CE #4533EC #786BF1 #ABA3F6 #DEDBFC

Accessibility & contrast

On white

4.06
#786BF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#786BF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BF1
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BF1#FFFFFF#000000##000000
##786BF11.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A82F6
Deuteranopia (green-blind)
#007AEE
Tritanopia (blue-blind)
#4989A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786bf1;
/* rgb */ color: rgb(120, 107, 241);
/* oklch */ color: oklch(60.9% 0.194 283.4);
Tailwind
colors: {
  custom: {
    50: '#a796f6',
    500: '#786bf1',
    950: '#000000',
  },
}
SCSS
$custom: #786bf1;
$custom-light: #a796f6;
$custom-dark: #000000;
JSON
{
  "hex": "#786bf1",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 241
  },
  "hsl": {
    "h": 245.821,
    "s": 82.716,
    "l": 68.235
  },
  "oklch": {
    "l": 0.60922,
    "c": 0.19413,
    "h": 283.4
  },
  "luminance": 0.20859
}

Semantic roles & 50–950 ramp

primary
#786BF1
secondary
#ECF0C8
accent
#DF06CA
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786BF1

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

Preview Lab → · Contrast checker → · Palette generator →

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