#786FEF#786FEF

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

Color values

HEX#786FEF
RGBrgb(120, 111, 239)
HSLhsl(244, 80%, 69%)
HSVhsv(244, 54%, 94%)
CMYKcmyk(49.8%, 53.6%, 0%, 6.3%)
CIE-LABlab(53.59, 36.66, -63.65)
CIE-LCHlch(53.59, 73.45, 299.94°)
OKLaboklab(61.47% 0.0407 -0.1817)
OKLCHoklch(61.47% 0.186 282.6)
XYZxyz(29.0054, 21.5924, 84.2840)
Luminance0.2159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FEF #E6EF6F
analogous
#6FA6EF #786FEF #B86FEF
triadic
#786FEF #EF786F #6FEF78
tetradic
#786FEF #EF6FA6 #E6EF6F #6FEFB8
square
#786FEF #EF6FA6 #E6EF6F #6FEFB8
split-complementary
#786FEF #EFB86F #A6EF6F
monochromatic
#2417CD #4438E9 #786FEF #ACA6F5 #DFDDFB

Accessibility & contrast

On white

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

On black

5.32
#786FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FEF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FEF#FFFFFF#000000##000000
##786FEF1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2684F3
Deuteranopia (green-blind)
#187CEC
Tritanopia (blue-blind)
#4A8CA4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786fef;
/* rgb */ color: rgb(120, 111, 239);
/* oklch */ color: oklch(61.5% 0.186 282.6);
Tailwind
colors: {
  custom: {
    50: '#a798f5',
    500: '#786fef',
    950: '#000000',
  },
}
SCSS
$custom: #786fef;
$custom-light: #a798f5;
$custom-dark: #000000;
JSON
{
  "hex": "#786fef",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 239
  },
  "hsl": {
    "h": 244.219,
    "s": 80,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61474,
    "c": 0.18624,
    "h": 282.6
  },
  "luminance": 0.21594
}

Semantic roles & 50–950 ramp

primary
#786FEF
secondary
#EDF0CA
accent
#DC09CD
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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