#786DF5#786DF5

#786DF5 is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.5% C 0.197 H 282.6°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#786DF5
RGBrgb(120, 109, 245)
HSLhsl(245, 87%, 69%)
HSVhsv(245, 56%, 96%)
CMYKcmyk(51%, 55.5%, 0%, 3.9%)
CIE-LABlab(53.52, 39.62, -67.12)
CIE-LCHlch(53.52, 77.94, 300.56°)
OKLaboklab(61.54% 0.0429 -0.192)
OKLCHoklch(61.54% 0.197 282.6)
XYZxyz(29.6908, 21.5213, 88.9580)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DF5 #EAF56D
analogous
#6DA6F5 #786DF5 #BC6DF5
triadic
#786DF5 #F5786D #6DF578
tetradic
#786DF5 #F56DA6 #EAF56D #6DF5BC
square
#786DF5 #F56DA6 #EAF56D #6DF5BC
split-complementary
#786DF5 #F5BC6D #A6F56D
monochromatic
#1F0FD9 #4334F1 #786DF5 #ADA6F9 #E2E0FD

Accessibility & contrast

On white

3.96
#786DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#786DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786DF5
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786DF5#FFFFFF#000000##000000
##786DF51.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0884FA
Deuteranopia (green-blind)
#007BF2
Tritanopia (blue-blind)
#468CA7
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #786df5;
/* rgb */ color: rgb(120, 109, 245);
/* oklch */ color: oklch(61.5% 0.197 282.6);
Tailwind
colors: {
  custom: {
    50: '#a897f9',
    500: '#786df5',
    950: '#000000',
  },
}
SCSS
$custom: #786df5;
$custom-light: #a897f9;
$custom-dark: #000000;
JSON
{
  "hex": "#786df5",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 245
  },
  "hsl": {
    "h": 244.853,
    "s": 87.179,
    "l": 69.412
  },
  "oklch": {
    "l": 0.61541,
    "c": 0.1967,
    "h": 282.6
  },
  "luminance": 0.21523
}

Semantic roles & 50–950 ramp

primary
#786DF5
secondary
#EFF2CB
accent
#E402D1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100D17
muted
#7F7E85

Preview Lab

Preview with #786DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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