#786FDF#786FDF

#786FDF is a mid, vivid blue. Relative luminance 0.207; OKLCH L 60.4% C 0.165 H 283.9°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#786FDF
RGBrgb(120, 111, 223)
HSLhsl(245, 64%, 65%)
HSVhsv(245, 50%, 87%)
CMYKcmyk(46.2%, 50.2%, 0%, 12.5%)
CIE-LABlab(52.61, 31.93, -56.26)
CIE-LCHlch(52.61, 64.69, 299.58°)
OKLaboklab(60.42% 0.0397 -0.16)
OKLCHoklch(60.42% 0.165 283.9)
XYZxyz(26.7455, 20.6884, 72.3817)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FDF #D6DF6F
analogous
#6F9EDF #786FDF #B06FDF
triadic
#786FDF #DF786F #6FDF78
tetradic
#786FDF #DF6F9E #D6DF6F #6FDFB0
square
#786FDF #DF6F9E #D6DF6F #6FDFB0
split-complementary
#786FDF #DFB06F #9EDF6F
monochromatic
#3126AD #493DD4 #786FDF #A7A1EA #D6D3F5

Accessibility & contrast

On white

4.09
#786FDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#786FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FDF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FDF#FFFFFF#000000##000000
##786FDF1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C81E3
Deuteranopia (green-blind)
#377ADD
Tritanopia (blue-blind)
#55879D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #786fdf;
/* rgb */ color: rgb(120, 111, 223);
/* oklch */ color: oklch(60.4% 0.165 283.9);
Tailwind
colors: {
  custom: {
    50: '#a598ea',
    500: '#786fdf',
    950: '#000000',
  },
}
SCSS
$custom: #786fdf;
$custom-light: #a598ea;
$custom-dark: #000000;
JSON
{
  "hex": "#786fdf",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 223
  },
  "hsl": {
    "h": 244.821,
    "s": 63.636,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60422,
    "c": 0.16489,
    "h": 283.9
  },
  "luminance": 0.2069
}

Semantic roles & 50–950 ramp

primary
#786FDF
secondary
#E5E8C2
accent
#CB1ABD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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