#786FD6#786FD6

#786FD6 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.9% C 0.153 H 284.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#786FD6
RGBrgb(120, 111, 214)
HSLhsl(245, 56%, 64%)
HSVhsv(245, 48%, 84%)
CMYKcmyk(43.9%, 48.1%, 0%, 16.1%)
CIE-LABlab(52.08, 29.30, -52.02)
CIE-LCHlch(52.08, 59.70, 299.39°)
OKLaboklab(59.86% 0.0389 -0.1476)
OKLCHoklch(59.86% 0.153 284.8)
XYZxyz(25.5642, 20.2159, 66.1604)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FD6 #CDD66F
analogous
#6F99D6 #786FD6 #AB6FD6
triadic
#786FD6 #D6786F #6FD678
tetradic
#786FD6 #D66F99 #CDD66F #6FD6AB
square
#786FD6 #D66F99 #CDD66F #6FD6AB
split-complementary
#786FD6 #D6AB6F #99D66F
monochromatic
#372D9E #4B3FC8 #786FD6 #A59FE4 #D1CEF1

Accessibility & contrast

On white

4.16
#786FD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#786FD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FD6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FD6#FFFFFF#000000##000000
##786FD61.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#447FDA
Deuteranopia (green-blind)
#4179D4
Tritanopia (blue-blind)
#5A8498
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786fd6;
/* rgb */ color: rgb(120, 111, 214);
/* oklch */ color: oklch(59.9% 0.153 284.8);
Tailwind
colors: {
  custom: {
    50: '#a498e3',
    500: '#786fd6',
    950: '#000000',
  },
}
SCSS
$custom: #786fd6;
$custom-light: #a498e3;
$custom-dark: #000000;
JSON
{
  "hex": "#786fd6",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 214
  },
  "hsl": {
    "h": 245.243,
    "s": 55.676,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59857,
    "c": 0.15262,
    "h": 284.8
  },
  "luminance": 0.20217
}

Semantic roles & 50–950 ramp

primary
#786FD6
secondary
#DFE3BE
accent
#C322B5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #786FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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