#786FEE#786FEE

#786FEE is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.4% C 0.185 H 282.7°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#786FEE
RGBrgb(120, 111, 238)
HSLhsl(244, 79%, 68%)
HSVhsv(244, 53%, 93%)
CMYKcmyk(49.6%, 53.4%, 0%, 6.7%)
CIE-LABlab(53.53, 36.37, -63.19)
CIE-LCHlch(53.53, 72.91, 299.92°)
OKLaboklab(61.41% 0.0406 -0.1804)
OKLCHoklch(61.41% 0.185 282.7)
XYZxyz(28.8581, 21.5335, 83.5081)
Luminance0.2154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FEE #E5EE6F
analogous
#6FA5EE #786FEE #B76FEE
triadic
#786FEE #EE786F #6FEE78
tetradic
#786FEE #EE6FA5 #E5EE6F #6FEEB7
square
#786FEE #EE6FA5 #E5EE6F #6FEEB7
split-complementary
#786FEE #EEB76F #A5EE6F
monochromatic
#2518CB #4538E8 #786FEE #ABA6F4 #DFDCFB

Accessibility & contrast

On white

3.96
#786FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##786FEE#FFFFFF#000000##000000
##786FEE1.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2884F2
Deuteranopia (green-blind)
#1B7CEB
Tritanopia (blue-blind)
#4B8BA4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786fee;
/* rgb */ color: rgb(120, 111, 238);
/* oklch */ color: oklch(61.4% 0.185 282.7);
Tailwind
colors: {
  custom: {
    50: '#a798f4',
    500: '#786fee',
    950: '#000000',
  },
}
SCSS
$custom: #786fee;
$custom-light: #a798f4;
$custom-dark: #000000;
JSON
{
  "hex": "#786fee",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 238
  },
  "hsl": {
    "h": 244.252,
    "s": 78.882,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61407,
    "c": 0.18493,
    "h": 282.7
  },
  "luminance": 0.21535
}

Semantic roles & 50–950 ramp

primary
#786FEE
secondary
#EDF0C9
accent
#DB0ACC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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