#786DF8#786DF8

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

Color values

HEX#786DF8
RGBrgb(120, 109, 248)
HSLhsl(245, 91%, 70%)
HSVhsv(245, 56%, 97%)
CMYKcmyk(51.6%, 56%, 0%, 2.7%)
CIE-LABlab(53.71, 40.52, -68.46)
CIE-LCHlch(53.71, 79.55, 300.62°)
OKLaboklab(61.75% 0.0429 -0.1959)
OKLCHoklch(61.75% 0.201 282.4)
XYZxyz(30.1525, 21.7060, 91.3896)
Luminance0.2171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DF8 #EDF86D
analogous
#6DA8F8 #786DF8 #BD6DF8
triadic
#786DF8 #F8786D #6DF878
tetradic
#786DF8 #F86DA8 #EDF86D #6DF8BD
square
#786DF8 #F86DA8 #EDF86D #6DF8BD
split-complementary
#786DF8 #F8BD6D #A8F86D
monochromatic
#1C0BE0 #4233F5 #786DF8 #AEA7FB #E4E2FE

Accessibility & contrast

On white

3.93
#786DF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#786DF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DF8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DF8#FFFFFF#000000##000000
##786DF81.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FD
Deuteranopia (green-blind)
#007CF5
Tritanopia (blue-blind)
#438DA8
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786df8;
/* rgb */ color: rgb(120, 109, 248);
/* oklch */ color: oklch(61.8% 0.201 282.4);
Tailwind
colors: {
  custom: {
    50: '#a897fb',
    500: '#786df8',
    950: '#000000',
  },
}
SCSS
$custom: #786df8;
$custom-light: #a897fb;
$custom-dark: #000000;
JSON
{
  "hex": "#786df8",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 248
  },
  "hsl": {
    "h": 244.748,
    "s": 90.85,
    "l": 70
  },
  "oklch": {
    "l": 0.61751,
    "c": 0.20057,
    "h": 282.4
  },
  "luminance": 0.21708
}

Semantic roles & 50–950 ramp

primary
#786DF8
secondary
#F1F4CD
accent
#E600D3
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110D18
muted
#807E86

Preview Lab

Preview with #786DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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