#786BFD#786BFD

#786BFD is a mid, highly saturated blue. Relative luminance 0.216; OKLCH L 61.8% C 0.209 H 282.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#786BFD
RGBrgb(120, 107, 253)
HSLhsl(245, 97%, 71%)
HSVhsv(245, 58%, 99%)
CMYKcmyk(52.6%, 57.7%, 0%, 0.8%)
CIE-LABlab(53.60, 43.17, -71.42)
CIE-LCHlch(53.60, 83.45, 301.15°)
OKLaboklab(61.77% 0.0449 -0.2046)
OKLCHoklch(61.77% 0.21 282.4)
XYZxyz(30.7276, 21.5985, 95.4593)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BFD #F0FD6B
analogous
#6BA7FD #786BFD #C16BFD
triadic
#786BFD #FD786B #6BFD78
tetradic
#786BFD #FD6BA7 #F0FD6B #6BFDC1
square
#786BFD #FD6BA7 #F0FD6B #6BFDC1
split-complementary
#786BFD #FDC16B #A7FD6B
monochromatic
#1803EA #412FFC #786BFD #AFA7FE #E3E1FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786BFD#FFFFFF#000000##000000
##786BFD1.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)
#0085FF
Deuteranopia (green-blind)
#007BFA
Tritanopia (blue-blind)
#3E8DAA
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786bfd;
/* rgb */ color: rgb(120, 107, 253);
/* oklch */ color: oklch(61.8% 0.209 282.4);
Tailwind
colors: {
  custom: {
    50: '#a996ff',
    500: '#786bfd',
    950: '#000000',
  },
}
SCSS
$custom: #786bfd;
$custom-light: #a996ff;
$custom-dark: #000000;
JSON
{
  "hex": "#786bfd",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 253
  },
  "hsl": {
    "h": 245.342,
    "s": 97.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.61772,
    "c": 0.2095,
    "h": 282.4
  },
  "luminance": 0.216
}

Semantic roles & 50–950 ramp

primary
#786BFD
secondary
#F2F6CE
accent
#E600D1
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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