#786FDA#786FDA

#786FDA is a mid, vivid blue. Relative luminance 0.204; OKLCH L 60.1% C 0.158 H 284.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#786FDA
RGBrgb(120, 111, 218)
HSLhsl(245, 59%, 65%)
HSVhsv(245, 49%, 85%)
CMYKcmyk(45%, 49.1%, 0%, 14.5%)
CIE-LABlab(52.31, 30.47, -53.91)
CIE-LCHlch(52.31, 61.92, 299.47°)
OKLaboklab(60.11% 0.0393 -0.1531)
OKLCHoklch(60.11% 0.158 284.4)
XYZxyz(26.0814, 20.4228, 68.8838)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FDA #D1DA6F
analogous
#6F9CDA #786FDA #AE6FDA
triadic
#786FDA #DA786F #6FDA78
tetradic
#786FDA #DA6F9C #D1DA6F #6FDAAE
square
#786FDA #DA6F9C #D1DA6F #6FDAAE
split-complementary
#786FDA #DAAE6F #9CDA6F
monochromatic
#352AA4 #4A3ECD #786FDA #A6A0E7 #D3D0F3

Accessibility & contrast

On white

4.13
#786FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#786FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FDA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FDA#FFFFFF#000000##000000
##786FDA1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4180DE
Deuteranopia (green-blind)
#3D79D8
Tritanopia (blue-blind)
#58869A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #786fda;
/* rgb */ color: rgb(120, 111, 218);
/* oklch */ color: oklch(60.1% 0.158 284.4);
Tailwind
colors: {
  custom: {
    50: '#a498e6',
    500: '#786fda',
    950: '#000000',
  },
}
SCSS
$custom: #786fda;
$custom-light: #a498e6;
$custom-dark: #000000;
JSON
{
  "hex": "#786fda",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 218
  },
  "hsl": {
    "h": 245.047,
    "s": 59.116,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60105,
    "c": 0.15809,
    "h": 284.4
  },
  "luminance": 0.20424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #786FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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