#786EF2#786EF2

#786EF2 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 61.5% C 0.191 H 282.6°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#786EF2
RGBrgb(120, 110, 242)
HSLhsl(245, 84%, 69%)
HSVhsv(245, 55%, 95%)
CMYKcmyk(50.4%, 54.5%, 0%, 5.1%)
CIE-LABlab(53.55, 38.14, -65.39)
CIE-LCHlch(53.55, 75.70, 300.26°)
OKLaboklab(61.51% 0.0418 -0.1869)
OKLCHoklch(61.51% 0.191 282.6)
XYZxyz(29.3438, 21.5541, 86.6013)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EF2 #E8F26E
analogous
#6EA6F2 #786EF2 #BA6EF2
triadic
#786EF2 #F2786E #6EF278
tetradic
#786EF2 #F26EA6 #E8F26E #6EF2BA
square
#786EF2 #F26EA6 #E8F26E #6EF2BA
split-complementary
#786EF2 #F2BA6E #A6F26E
monochromatic
#2113D3 #4436ED #786EF2 #ACA6F7 #E1DEFC

Accessibility & contrast

On white

3.95
#786EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#786EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786EF2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EF2#FFFFFF#000000##000000
##786EF21.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B84F7
Deuteranopia (green-blind)
#037BEF
Tritanopia (blue-blind)
#488CA5
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786ef2;
/* rgb */ color: rgb(120, 110, 242);
/* oklch */ color: oklch(61.5% 0.191 282.6);
Tailwind
colors: {
  custom: {
    50: '#a798f7',
    500: '#786ef2',
    950: '#000000',
  },
}
SCSS
$custom: #786ef2;
$custom-light: #a798f7;
$custom-dark: #000000;
JSON
{
  "hex": "#786ef2",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 242
  },
  "hsl": {
    "h": 244.545,
    "s": 83.544,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61505,
    "c": 0.19149,
    "h": 282.6
  },
  "luminance": 0.21556
}

Semantic roles & 50–950 ramp

primary
#786EF2
secondary
#EEF1CB
accent
#E006CF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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