#786FDB#786FDB

#786FDB is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.2% C 0.159 H 284.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#786FDB
RGBrgb(120, 111, 219)
HSLhsl(245, 60%, 65%)
HSVhsv(245, 49%, 86%)
CMYKcmyk(45.2%, 49.3%, 0%, 14.1%)
CIE-LABlab(52.37, 30.76, -54.38)
CIE-LCHlch(52.37, 62.48, 299.49°)
OKLaboklab(60.17% 0.0394 -0.1545)
OKLCHoklch(60.17% 0.159 284.3)
XYZxyz(26.2126, 20.4753, 69.5751)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FDB #D2DB6F
analogous
#6F9CDB #786FDB #AE6FDB
triadic
#786FDB #DB786F #6FDB78
tetradic
#786FDB #DB6F9C #D2DB6F #6FDBAE
square
#786FDB #DB6F9C #D2DB6F #6FDBAE
split-complementary
#786FDB #DBAE6F #9CDB6F
monochromatic
#342AA6 #4A3ECF #786FDB #A6A0E7 #D4D1F3

Accessibility & contrast

On white

4.12
#786FDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#786FDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FDB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FDB#FFFFFF#000000##000000
##786FDB1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4080DF
Deuteranopia (green-blind)
#3B7AD9
Tritanopia (blue-blind)
#58869B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786fdb;
/* rgb */ color: rgb(120, 111, 219);
/* oklch */ color: oklch(60.2% 0.159 284.3);
Tailwind
colors: {
  custom: {
    50: '#a498e7',
    500: '#786fdb',
    950: '#000000',
  },
}
SCSS
$custom: #786fdb;
$custom-light: #a498e7;
$custom-dark: #000000;
JSON
{
  "hex": "#786fdb",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 219
  },
  "hsl": {
    "h": 245,
    "s": 60,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60168,
    "c": 0.15946,
    "h": 284.3
  },
  "luminance": 0.20476
}

Semantic roles & 50–950 ramp

primary
#786FDB
secondary
#E2E5C0
accent
#C81EBA
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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