#786DF2#786DF2

#786DF2 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.3% C 0.193 H 282.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#786DF2
RGBrgb(120, 109, 242)
HSLhsl(245, 84%, 69%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50.4%, 55%, 0%, 5.1%)
CIE-LABlab(53.32, 38.73, -65.76)
CIE-LCHlch(53.32, 76.32, 300.50°)
OKLaboklab(61.33% 0.0429 -0.188)
OKLCHoklch(61.33% 0.193 282.8)
XYZxyz(29.2365, 21.3396, 86.5656)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DF2 #E7F26D
analogous
#6DA5F2 #786DF2 #BB6DF2
triadic
#786DF2 #F2786D #6DF278
tetradic
#786DF2 #F26DA5 #E7F26D #6DF2BB
square
#786DF2 #F26DA5 #E7F26D #6DF2BB
split-complementary
#786DF2 #F2BB6D #A5F26D
monochromatic
#2313D2 #4435ED #786DF2 #ACA5F7 #E0DDFC

Accessibility & contrast

On white

3.99
#786DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#786DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DF2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DF2#FFFFFF#000000##000000
##786DF21.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1584F7
Deuteranopia (green-blind)
#007BEF
Tritanopia (blue-blind)
#488BA5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786df2;
/* rgb */ color: rgb(120, 109, 242);
/* oklch */ color: oklch(61.3% 0.193 282.8);
Tailwind
colors: {
  custom: {
    50: '#a797f7',
    500: '#786df2',
    950: '#000000',
  },
}
SCSS
$custom: #786df2;
$custom-light: #a797f7;
$custom-dark: #000000;
JSON
{
  "hex": "#786df2",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 242
  },
  "hsl": {
    "h": 244.962,
    "s": 83.648,
    "l": 68.824
  },
  "oklch": {
    "l": 0.61333,
    "c": 0.19281,
    "h": 282.8
  },
  "luminance": 0.21341
}

Semantic roles & 50–950 ramp

primary
#786DF2
secondary
#EEF1CA
accent
#E005CE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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