#786DF3#786DF3

#786DF3 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.4% C 0.194 H 282.8°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#786DF3
RGBrgb(120, 109, 243)
HSLhsl(245, 85%, 69%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50.6%, 55.1%, 0%, 4.7%)
CIE-LABlab(53.38, 39.03, -66.21)
CIE-LCHlch(53.38, 76.86, 300.52°)
OKLaboklab(61.4% 0.0429 -0.1893)
OKLCHoklch(61.4% 0.194 282.8)
XYZxyz(29.3871, 21.3998, 87.3587)
Luminance0.2140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DF3 #E8F36D
analogous
#6DA5F3 #786DF3 #BB6DF3
triadic
#786DF3 #F3786D #6DF378
tetradic
#786DF3 #F36DA5 #E8F36D #6DF3BB
square
#786DF3 #F36DA5 #E8F36D #6DF3BB
split-complementary
#786DF3 #F3BB6D #A5F36D
monochromatic
#2111D4 #4434EE #786DF3 #ACA6F8 #E1DEFC

Accessibility & contrast

On white

3.98
#786DF3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#786DF3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DF3
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DF3#FFFFFF#000000##000000
##786DF31.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1284F8
Deuteranopia (green-blind)
#007BF0
Tritanopia (blue-blind)
#478BA6
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786df3;
/* rgb */ color: rgb(120, 109, 243);
/* oklch */ color: oklch(61.4% 0.194 282.8);
Tailwind
colors: {
  custom: {
    50: '#a797f8',
    500: '#786df3',
    950: '#000000',
  },
}
SCSS
$custom: #786df3;
$custom-light: #a797f8;
$custom-dark: #000000;
JSON
{
  "hex": "#786df3",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 243
  },
  "hsl": {
    "h": 244.925,
    "s": 84.81,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61402,
    "c": 0.19411,
    "h": 282.8
  },
  "luminance": 0.21401
}

Semantic roles & 50–950 ramp

primary
#786DF3
secondary
#EEF2CA
accent
#E104CF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DF3

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

Preview Lab → · Contrast checker → · Palette generator →

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