#786FEB#786FEB

#786FEB is a mid, vivid blue. Relative luminance 0.214; OKLCH L 61.2% C 0.181 H 282.9°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#786FEB
RGBrgb(120, 111, 235)
HSLhsl(244, 76%, 68%)
HSVhsv(244, 53%, 92%)
CMYKcmyk(48.9%, 52.8%, 0%, 7.8%)
CIE-LABlab(53.34, 35.47, -61.82)
CIE-LCHlch(53.34, 71.28, 299.85°)
OKLaboklab(61.21% 0.0405 -0.1764)
OKLCHoklch(61.21% 0.181 282.9)
XYZxyz(28.4211, 21.3586, 81.2062)
Luminance0.2136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FEB #E2EB6F
analogous
#6FA4EB #786FEB #B66FEB
triadic
#786FEB #EB786F #6FEB78
tetradic
#786FEB #EB6FA4 #E2EB6F #6FEBB6
square
#786FEB #EB6FA4 #E2EB6F #6FEBB6
split-complementary
#786FEB #EBB66F #A4EB6F
monochromatic
#281BC4 #4639E4 #786FEB #AAA5F2 #DDDAFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786FEB#FFFFFF#000000##000000
##786FEB1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D84EF
Deuteranopia (green-blind)
#237BE8
Tritanopia (blue-blind)
#4D8AA2
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786feb;
/* rgb */ color: rgb(120, 111, 235);
/* oklch */ color: oklch(61.2% 0.181 282.9);
Tailwind
colors: {
  custom: {
    50: '#a698f2',
    500: '#786feb',
    950: '#000000',
  },
}
SCSS
$custom: #786feb;
$custom-light: #a698f2;
$custom-dark: #000000;
JSON
{
  "hex": "#786feb",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 235
  },
  "hsl": {
    "h": 244.355,
    "s": 75.61,
    "l": 67.843
  },
  "oklch": {
    "l": 0.61205,
    "c": 0.18097,
    "h": 282.9
  },
  "luminance": 0.2136
}

Semantic roles & 50–950 ramp

primary
#786FEB
secondary
#EBEEC8
accent
#D80EC9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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