#786FD8#786FD8

#786FD8 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.0% C 0.155 H 284.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#786FD8
RGBrgb(120, 111, 216)
HSLhsl(245, 57%, 64%)
HSVhsv(245, 49%, 85%)
CMYKcmyk(44.4%, 48.6%, 0%, 15.3%)
CIE-LABlab(52.20, 29.88, -52.97)
CIE-LCHlch(52.20, 60.81, 299.43°)
OKLaboklab(59.98% 0.0391 -0.1504)
OKLCHoklch(59.98% 0.155 284.6)
XYZxyz(25.8212, 20.3187, 67.5138)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD8 #CFD86F
analogous
#6F9BD8 #786FD8 #AD6FD8
triadic
#786FD8 #D8786F #6FD878
tetradic
#786FD8 #D86F9B #CFD86F #6FD8AD
square
#786FD8 #D86F9B #CFD86F #6FD8AD
split-complementary
#786FD8 #D8AD6F #9BD86F
monochromatic
#362CA1 #4B3FCB #786FD8 #A59FE5 #D2CFF2

Accessibility & contrast

On white

4.15
#786FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#786FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD8#FFFFFF#000000##000000
##786FD81.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4280DC
Deuteranopia (green-blind)
#3F79D6
Tritanopia (blue-blind)
#598599
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786fd8;
/* rgb */ color: rgb(120, 111, 216);
/* oklch */ color: oklch(60.0% 0.155 284.6);
Tailwind
colors: {
  custom: {
    50: '#a498e5',
    500: '#786fd8',
    950: '#000000',
  },
}
SCSS
$custom: #786fd8;
$custom-light: #a498e5;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd8",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 216
  },
  "hsl": {
    "h": 245.143,
    "s": 57.377,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59981,
    "c": 0.15536,
    "h": 284.6
  },
  "luminance": 0.2032
}

Semantic roles & 50–950 ramp

primary
#786FD8
secondary
#E1E4BF
accent
#C521B7
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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