#786FD5#786FD5

#786FD5 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.8% C 0.151 H 284.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#786FD5
RGBrgb(120, 111, 213)
HSLhsl(245, 55%, 64%)
HSVhsv(245, 48%, 84%)
CMYKcmyk(43.7%, 47.9%, 0%, 16.5%)
CIE-LABlab(52.02, 29.01, -51.54)
CIE-LCHlch(52.02, 59.15, 299.37°)
OKLaboklab(59.8% 0.0388 -0.1462)
OKLCHoklch(59.8% 0.151 284.9)
XYZxyz(25.4369, 20.1650, 65.4898)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD5 #CCD56F
analogous
#6F99D5 #786FD5 #AB6FD5
triadic
#786FD5 #D5786F #6FD578
tetradic
#786FD5 #D56F99 #CCD56F #6FD5AB
square
#786FD5 #D56F99 #CCD56F #6FD5AB
split-complementary
#786FD5 #D5AB6F #99D56F
monochromatic
#372E9C #4C40C7 #786FD5 #A49EE3 #D1CEF1

Accessibility & contrast

On white

4.17
#786FD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#786FD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD5
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD5#FFFFFF#000000##000000
##786FD51.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#457FD9
Deuteranopia (green-blind)
#4279D3
Tritanopia (blue-blind)
#5B8498
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786fd5;
/* rgb */ color: rgb(120, 111, 213);
/* oklch */ color: oklch(59.8% 0.151 284.9);
Tailwind
colors: {
  custom: {
    50: '#a498e2',
    500: '#786fd5',
    950: '#000000',
  },
}
SCSS
$custom: #786fd5;
$custom-light: #a498e2;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd5",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 213
  },
  "hsl": {
    "h": 245.294,
    "s": 54.839,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59795,
    "c": 0.15124,
    "h": 284.9
  },
  "luminance": 0.20166
}

Semantic roles & 50–950 ramp

primary
#786FD5
secondary
#DFE2BE
accent
#C223B4
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #786FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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