#786BDE#786BDE

#786BDE is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.6% C 0.169 H 285.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#786BDE
RGBrgb(120, 107, 222)
HSLhsl(247, 64%, 65%)
HSVhsv(247, 52%, 87%)
CMYKcmyk(45.9%, 51.8%, 0%, 12.9%)
CIE-LABlab(51.59, 34.01, -57.33)
CIE-LCHlch(51.59, 66.66, 300.68°)
OKLaboklab(59.64% 0.0443 -0.1632)
OKLCHoklch(59.64% 0.169 285.2)
XYZxyz(26.1844, 19.7812, 71.5316)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BDE #D1DE6B
analogous
#6B97DE #786BDE #B26BDE
triadic
#786BDE #DE786B #6BDE78
tetradic
#786BDE #DE6B97 #D1DE6B #6BDEB2
square
#786BDE #DE6B97 #D1DE6B #6BDEB2
split-complementary
#786BDE #DEB26B #97DE6B
monochromatic
#3526A9 #4A39D3 #786BDE #A69DE9 #D3CFF4

Accessibility & contrast

On white

4.24
#786BDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#786BDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BDE
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BDE#FFFFFF#000000##000000
##786BDE1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#337EE2
Deuteranopia (green-blind)
#3077DB
Tritanopia (blue-blind)
#56849A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #786bde;
/* rgb */ color: rgb(120, 107, 222);
/* oklch */ color: oklch(59.6% 0.169 285.2);
Tailwind
colors: {
  custom: {
    50: '#a595e9',
    500: '#786bde',
    950: '#000000',
  },
}
SCSS
$custom: #786bde;
$custom-light: #a595e9;
$custom-dark: #000000;
JSON
{
  "hex": "#786bde",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 222
  },
  "hsl": {
    "h": 246.783,
    "s": 63.536,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59641,
    "c": 0.1691,
    "h": 285.2
  },
  "luminance": 0.19782
}

Semantic roles & 50–950 ramp

primary
#786BDE
secondary
#E2E6BF
accent
#CB1AB7
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786BDE

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

Preview Lab → · Contrast checker → · Palette generator →

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