#786BFA#786BFA

#786BFA is a mid, highly saturated blue. Relative luminance 0.214; OKLCH L 61.6% C 0.206 H 282.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#786BFA
RGBrgb(120, 107, 250)
HSLhsl(245, 93%, 70%)
HSVhsv(245, 57%, 98%)
CMYKcmyk(52%, 57.2%, 0%, 2%)
CIE-LABlab(53.39, 42.28, -70.09)
CIE-LCHlch(53.39, 81.85, 301.10°)
OKLaboklab(61.56% 0.045 -0.2007)
OKLCHoklch(61.56% 0.206 282.6)
XYZxyz(30.2535, 21.4089, 92.9621)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BFA #EDFA6B
analogous
#6BA5FA #786BFA #C06BFA
triadic
#786BFA #FA786B #6BFA78
tetradic
#786BFA #FA6BA5 #EDFA6B #6BFAC0
square
#786BFA #FA6BA5 #EDFA6B #6BFAC0
split-complementary
#786BFA #FAC06B #A5FA6B
monochromatic
#1C08E3 #4230F8 #786BFA #AEA6FC #E4E1FE

Accessibility & contrast

On white

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

On black

5.28
#786BFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BFA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BFA#FFFFFF#000000##000000
##786BFA1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FF
Deuteranopia (green-blind)
#007BF7
Tritanopia (blue-blind)
#418CA8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786bfa;
/* rgb */ color: rgb(120, 107, 250);
/* oklch */ color: oklch(61.6% 0.206 282.6);
Tailwind
colors: {
  custom: {
    50: '#a896fd',
    500: '#786bfa',
    950: '#000000',
  },
}
SCSS
$custom: #786bfa;
$custom-light: #a896fd;
$custom-dark: #000000;
JSON
{
  "hex": "#786bfa",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 250
  },
  "hsl": {
    "h": 245.455,
    "s": 93.464,
    "l": 70
  },
  "oklch": {
    "l": 0.61557,
    "c": 0.2057,
    "h": 282.6
  },
  "luminance": 0.21411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786BFA

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

Preview Lab → · Contrast checker → · Palette generator →

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