#786FE8#786FE8

#786FE8 is a mid, vivid blue. Relative luminance 0.212; OKLCH L 61.0% C 0.177 H 283.2°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#786FE8
RGBrgb(120, 111, 232)
HSLhsl(244, 72%, 67%)
HSVhsv(244, 52%, 91%)
CMYKcmyk(48.3%, 52.2%, 0%, 9%)
CIE-LABlab(53.15, 34.58, -60.44)
CIE-LCHlch(53.15, 69.64, 299.78°)
OKLaboklab(61.01% 0.0403 -0.1723)
OKLCHoklch(61.01% 0.177 283.2)
XYZxyz(27.9913, 21.1867, 78.9428)
Luminance0.2119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FE8 #DFE86F
analogous
#6FA2E8 #786FE8 #B56FE8
triadic
#786FE8 #E8786F #6FE878
tetradic
#786FE8 #E86FA2 #DFE86F #6FE8B5
square
#786FE8 #E86FA2 #DFE86F #6FE8B5
split-complementary
#786FE8 #E8B56F #A2E86F
monochromatic
#2A1EBE #473AE0 #786FE8 #A9A4F0 #DBD9F9

Accessibility & contrast

On white

4.01
#786FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#786FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FE8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FE8#FFFFFF#000000##000000
##786FE81.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3183EC
Deuteranopia (green-blind)
#297BE5
Tritanopia (blue-blind)
#508AA1
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #786fe8;
/* rgb */ color: rgb(120, 111, 232);
/* oklch */ color: oklch(61.0% 0.177 283.2);
Tailwind
colors: {
  custom: {
    50: '#a698f0',
    500: '#786fe8',
    950: '#000000',
  },
}
SCSS
$custom: #786fe8;
$custom-light: #a698f0;
$custom-dark: #000000;
JSON
{
  "hex": "#786fe8",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 232
  },
  "hsl": {
    "h": 244.463,
    "s": 72.455,
    "l": 67.255
  },
  "oklch": {
    "l": 0.61006,
    "c": 0.17698,
    "h": 283.2
  },
  "luminance": 0.21188
}

Semantic roles & 50–950 ramp

primary
#786FE8
secondary
#EAECC6
accent
#D511C6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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