#786DDE#786DDE

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

Color values

HEX#786DDE
RGBrgb(120, 109, 222)
HSLhsl(246, 63%, 65%)
HSVhsv(246, 51%, 87%)
CMYKcmyk(45.9%, 50.9%, 0%, 12.9%)
CIE-LABlab(52.07, 32.82, -56.57)
CIE-LCHlch(52.07, 65.40, 300.13°)
OKLaboklab(60% 0.042 -0.1609)
OKLCHoklch(60% 0.166 284.6)
XYZxyz(26.3953, 20.2031, 71.6019)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DDE #D3DE6D
analogous
#6D9ADE #786DDE #B16DDE
triadic
#786DDE #DE786D #6DDE78
tetradic
#786DDE #DE6D9A #D3DE6D #6DDEB1
square
#786DDE #DE6D9A #D3DE6D #6DDEB1
split-complementary
#786DDE #DEB16D #9ADE6D
monochromatic
#3326AA #4A3BD3 #786DDE #A69FE9 #D4D1F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DDE#FFFFFF#000000##000000
##786DDE1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3880E2
Deuteranopia (green-blind)
#3479DC
Tritanopia (blue-blind)
#56859B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #786dde;
/* rgb */ color: rgb(120, 109, 222);
/* oklch */ color: oklch(60.0% 0.166 284.6);
Tailwind
colors: {
  custom: {
    50: '#a597e9',
    500: '#786dde',
    950: '#000000',
  },
}
SCSS
$custom: #786dde;
$custom-light: #a597e9;
$custom-dark: #000000;
JSON
{
  "hex": "#786dde",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 222
  },
  "hsl": {
    "h": 245.841,
    "s": 63.128,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59998,
    "c": 0.16633,
    "h": 284.6
  },
  "luminance": 0.20204
}

Semantic roles & 50–950 ramp

primary
#786DDE
secondary
#E3E7C0
accent
#CB1BBA
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #786DDE

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

Preview Lab → · Contrast checker → · Palette generator →

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